mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
Issue 0000682: Error on user registration
On register page when the 2 passwords are not the same, an error occurs but user is also created. => Just error must be raised. git-svn-id: http://piwigo.org/svn/trunk@1985 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -44,11 +44,10 @@ function validate_mail_address( $mail_address )
|
||||
}
|
||||
}
|
||||
|
||||
function register_user($login, $password, $mail_address)
|
||||
function register_user($login, $password, $mail_address, $errors = array())
|
||||
{
|
||||
global $lang, $conf;
|
||||
|
||||
$errors = array();
|
||||
if ($login == '')
|
||||
{
|
||||
array_push($errors, $lang['reg_err_login1']);
|
||||
|
||||
Reference in New Issue
Block a user