/setpass
#3

Here are some steps that may be helpful:
1. Check the parameters using a function such as sscanf.
2. Verify if the current password parameter matches the stored password. Hash both passwords in seperate variables before doing anything - assuming you hash your passwords.
3. Verify if the current password is different from the new.
4. Change the password - make sure you use the hashed version.

Simply adjust it to fit your system / gamemode. If you aren't hashing your passwords this is a MUST!
Reply


Messages In This Thread
/setpass (I will +1 you) - by saffierr - 31.08.2015, 23:14
Re: /setpass - by trablon - 01.09.2015, 02:07
Re: /setpass - by Abagail - 01.09.2015, 02:44
Re: /setpass - by IceBilizard - 01.09.2015, 04:54
Re: /setpass - by Bomber07 - 01.09.2015, 08:37

Forum Jump:


Users browsing this thread: 1 Guest(s)