By Gavin G on Thursday, 24 April 2014
Posted in General Issues
Replies 4
Likes 0
Views 1.5K
Votes 0
Guys, where is the javascript/code that validates passwords on the registration page? I remember you saying you use the joomla password stuff and that uses /media/system/validate.js but ES doesn't seem to be using that javascript.
I need to reduce the max length allowed in passwords quite urgently because it's breaking my integration with other software when a new user has a password greater than 16 characters.
Hello Gavin,

You don't need to edit any files. You can configure it in the field settings for your profile type as you can see here, http://screencast.com/t/H5XTwfZNqR
·
Thursday, 24 April 2014 01:53
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Mark,
Thanks for the quick response as always but I actually need to restrict the max length of the password, not increase the min. I need to restrict it to 16 characters.
·
Thursday, 24 April 2014 11:36
·
0 Likes
·
0 Votes
·
0 Comments
·
Found what I needed in these files:
media\com_easysocial\apps\fields\user\joomla_password\joomla_password.php
Added at line 300
		if( strlen( $input ) > 16 )
{
$this->setError( JText::_( 'PLG_FIELDS_JOOMLA_PASSWORD_TOO_LONG' ) );

return false;
}

media\com_easysocial\apps\fields\user\joomla_password\scripts\content.js
Added at line 106
							if(input.length > 16) {
self.raiseError($.language('PLG_FIELDS_JOOMLA_PASSWORD_TOO_LONG'));
return false;
}


Any chance you could add max characters to the settings at some point Mark?
·
Thursday, 24 April 2014 13:28
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Gavin,

Thanks for the sharing

I will see if we can add a max chars for password field in version 1.3 or not.
Thanks again
Sam
·
Thursday, 24 April 2014 19:41
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post