Joomla! Discussion Forums



It is currently Fri Nov 27, 2009 7:25 am (All times are UTC )

 


Forum rules

Forum Rules
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 1 post ] 
Author Message
Posted: Thu Nov 05, 2009 2:39 am 
Joomla! Intern
Joomla! Intern
Offline

Joined: Sat Feb 09, 2008 8:27 am
Posts: 58
Hello Joomla Team,

I'm not sure where to post this so hopefully this is fine. Please move to the correct forum if you need to do so.

In j1.5.14 there is no MUST_SUPPLY_PASSWORD text in language/en_GB/en-GB.com_user.ini

However, in components/com_user/models/reset.php there is the following code:

Around line 155:
Code:
// Make sure that we have a pasword
      if ( ! $password1 )
      {
         $this->setError(JText::_('MUST_SUPPLY_PASSWORD'));
         return false;
      }


When trying to reset a password and you don't fill out the form and hit submit you will see the error:

Quote:
Your password reset failed because MUST_SUPPLY_PASSWORD.


Steps taken to reproduce:

1.) Create a user in the joomla user manager and specify a valid email address.
2.) Create a login module
3.) Click "Forgot your password" link and fill in your email address
4.) Receive email with "token" to reset password.
5.) Click on supplied link in email to reset password
6.) On the Confirm your account page enter the token you received in the email.
7.) On the Reset password page hit submit without filling anything out.
8.) See the joomla error specified above

To fix it, I opened language/en_GB/en-GB.com_user.ini and added the following:

Code:
MUST_SUPPLY_PASSWORD=you must supply a password


So now the error message reads:

Code:
Your password reset failed because you must supply a password.


Certainly not too big of a deal since I would guess most people are not going to be submitting the form blank but easily fixable nonetheless. I was just testing out what error messages pop up when you don't specify proper information (or no information) in the password reset forms.

Mark


Top
  E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

Quick reply

 



Who is online

Users browsing this forum: No registered users and 13 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group