This is a secure password change script meant for Shaiya private servers.
I noticed a lot of private servers do not allow regular users to change passwords. Be warned, this script is a double-edged sword in a way, ESPECIALLY since most servers do not allow for password recovery via email or some other method. By implementing this script players who have shared their account credentials with other players can now get their password changed unknowingly (and thus their account is now "stolen"). It is up to you to determine how to handle this.
I put the CAPTCHA in this to prevent other players from using a bot to brute-force passwords from other accounts.
Also some error messages are purposely generic to prevent users from verifiably guess account names from this script.
I commented these scripts fairly verbosely, so please read the comments! They are meant to tell you useful stuff.
There are seven scripts you will need to make this work:
changepassword.php
changepassword.view.php
success.view.php
db.php
db.config.php
recaptchalib.config.php
recaptchalib.php (From Google: [Only registered and activated users can see links. Click Here To Register...])
You can get success.view.php, db.php, db.config.php, recaptchalib.config.php, and recaptchalib.php from this post: [Only registered and activated users can see links. Click Here To Register...]
[changepassword.php] (Edit the SQL in this file if needed)
[changepassword.view.php] (Re-style the display in this file)
I noticed a lot of private servers do not allow regular users to change passwords. Be warned, this script is a double-edged sword in a way, ESPECIALLY since most servers do not allow for password recovery via email or some other method. By implementing this script players who have shared their account credentials with other players can now get their password changed unknowingly (and thus their account is now "stolen"). It is up to you to determine how to handle this.
I put the CAPTCHA in this to prevent other players from using a bot to brute-force passwords from other accounts.
Also some error messages are purposely generic to prevent users from verifiably guess account names from this script.
I commented these scripts fairly verbosely, so please read the comments! They are meant to tell you useful stuff.
There are seven scripts you will need to make this work:
changepassword.php
changepassword.view.php
success.view.php
db.php
db.config.php
recaptchalib.config.php
recaptchalib.php (From Google: [Only registered and activated users can see links. Click Here To Register...])
You can get success.view.php, db.php, db.config.php, recaptchalib.config.php, and recaptchalib.php from this post: [Only registered and activated users can see links. Click Here To Register...]
[changepassword.php] (Edit the SQL in this file if needed)
[changepassword.view.php] (Re-style the display in this file)