mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-09 02:03:18 +02:00
bug:2948 The registration can be done without typing a password
The password is only mandatory on the public register page Better error messages from admin/user_list.php git-svn-id: http://piwigo.org/svn/trunk@25121 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
+10
-2
@@ -47,9 +47,17 @@ if (isset($_POST['submit']))
|
||||
$page['errors'][] = l10n('Invalid/expired form key');
|
||||
}
|
||||
|
||||
if ($_POST['password'] != $_POST['password_conf'])
|
||||
if(empty($_POST['password']))
|
||||
{
|
||||
$page['errors'][] = l10n('please enter your password again');
|
||||
$page['errors'][] = l10n('Password is missing. Please enter the password.');
|
||||
}
|
||||
else if(empty($_POST['password_conf']))
|
||||
{
|
||||
$page['errors'][] = l10n('Password confirmation is missing. Please confirm the chosen password.');
|
||||
}
|
||||
else if ($_POST['password'] != $_POST['password_conf'])
|
||||
{
|
||||
$page['errors'][] = l10n('The passwords do not match');
|
||||
}
|
||||
|
||||
register_user($_POST['login'],
|
||||
|
||||
Reference in New Issue
Block a user