Show DevBest Password Reset Script (With confirmation)

Status
Not open for further replies.

Nathan

Member
Sep 14, 2010
65
3
Although I based it around a Phoenix database, I'm sure you can use it for something else.


If you're using this on a VPS, you will have to set up a mail server. (Use Google)
Please note if it might make your server lag a bit if your traffic is a lot.


If you're going to use this on a hotel, you're going to have to replace
Code:
include('config.php');
to
Code:
include('../config.php');


And you'll also need to add this to your config file:
Code:
$theemail="[email protected]";
And
Code:
$theurl="something.com";
You don't need to add http://


What does this do?
It sends an email to you telling you that you have requested a password change with a URL. You click that URL and it sends a random password to you and drops the confirmation code from the pass_reset table.


Download:


Credits to: SkeetEmUp(Michael), Rusty, DesCode for testing this.


Add what you want to it. I don't mind.


OH, you also need to run this for it to work:
PHP:
CREATE TABLE `pass_reset` (`confirm_code` varchar(65) NOT NULL default '',`email` varchar(65) NOT NULL default '') ENGINE=MyISAM DEFAULT CHARSET=latin1;

Mirror:
 
Status
Not open for further replies.

Users who are viewing this thread

Top