mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 09:13:02 +02:00
bug 2988: register_user() must returns new user id
git-svn-id: http://piwigo.org/svn/trunk@25116 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
+10
-4
@@ -204,8 +204,11 @@ if ($conf['double_password_type_in_admin'] == true)
|
||||
}
|
||||
else
|
||||
{
|
||||
$page['errors'] = register_user(
|
||||
$_POST['login'], $_POST['password'], $_POST['email'], false);
|
||||
register_user($_POST['login'],
|
||||
$_POST['password'],
|
||||
$_POST['email'],
|
||||
false,
|
||||
$page['errors']);
|
||||
|
||||
if (count($page['errors']) == 0)
|
||||
{
|
||||
@@ -218,8 +221,11 @@ else if ($conf['double_password_type_in_admin'] == false)
|
||||
{
|
||||
if (isset($_POST['submit_add']))
|
||||
{
|
||||
$page['errors'] = register_user(
|
||||
$_POST['login'], $_POST['password'], $_POST['email'], false);
|
||||
register_user($_POST['login'],
|
||||
$_POST['password'],
|
||||
$_POST['email'],
|
||||
false,
|
||||
$page['errors']);
|
||||
|
||||
if (count($page['errors']) == 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user