Links

Home arrow Articles arrow Programming arrow How to modify the lost password feature in joomla community builder with the email address only
How to modify the lost password feature in joomla community builder with the email address only PDF Print E-mail
Tag it:
Delicious
blogmarks
Stumble
Furl it!
Digg
YahooMyWeb
Technorati
User Rating: / 7
PoorBest 

Joomla Community builder has a built in lost password facility that allows for the automatic reset of the password contained in an email sent to the user. The user can then log in with the new password and change it from within the community builder profile.

Often times people dont remember their usernames, only their email address. However, without the username, the form will not submit and the password will not be sent. 

Let us take a closer look at the code so we can modify it to use just the email address and not the username.

 

The first thing we are going to change is the way the form itself looks. We are going to remove the username text box from the form.

Open comprofiler.html.php under components/com_comprofiler look for a function called lostPassForm($option) on line 959.

Modify the function to look like this:

 


Now open the file comprofiler.php located in components/com_comprofiler. Look for the function sendNewPass( $option ) on line 856.

Modify it to look like this:

 

 The lost password feature should now have ony an email address field and should use the email as a where criteria while retrieving the random value assigned to the password field.

 

Comments
Search
Only registered users can write comments!
Last Updated ( Sunday, 11 January 2009 )
 
< Prev   Next >