PDA

View Full Version : The user can register an account Without Entering the Password.



PGGO
July 10, 2012, 03:01 PM
I notice a problem with Password field at registration page.
The user can register an account Without Entering the Password.

I believe the password field must be Required!

Vladimir
July 11, 2012, 04:34 AM
Hello,

You can fix it so:

1. Open file includes/classes/rlAccount.class.php
2. Find method ajaxSubmitProfile();
3. replace this code:


if ( $this -> rlCommon -> strLen( $username, '<', 3 ) )
{
$errors .= '<li>'.str_replace( '{field}', '<span class="field_error">"'.$lang['password'].'"</span>', $lang['notice_reg_length'] ).'</li>';
$fields .= 'profile[password],';
}
$rlValid -> sql( $password );


to


if ( $this -> rlCommon -> strLen( $password, '<', 3 ) )
{
$errors .= '<li>'.str_replace( '{field}', '<span class="field_error">"'.$lang['password'].'"</span>', $lang['notice_reg_length'] ).'</li>';
$fields .= 'profile[password],';
}
$rlValid -> sql( $password );

John
July 25, 2012, 10:18 AM
Hi there,
This bug has been fixed in Flynax 4.1.0 version.

John