mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-26 03:09:58 +03:00
Merge d9027d2def
into ee0d29a0e9
This commit is contained in:
commit
9d7461b46c
1 changed files with 2 additions and 2 deletions
|
@ -1265,7 +1265,7 @@ SELECT '.$conf['user_fields']['id'].' AS id,
|
|||
;';
|
||||
|
||||
$row = pwg_db_fetch_assoc(pwg_query($query));
|
||||
if (isset($row['id']) and $conf['password_verify']($password, $row['password'], $row['id']))
|
||||
if (isset($row['id']) and $conf['password_verify'](stripslashes($password), $row['password'], $row['id']))
|
||||
{
|
||||
$user_found = true;
|
||||
}
|
||||
|
@ -1281,7 +1281,7 @@ SELECT '.$conf['user_fields']['id'].' AS id,
|
|||
;';
|
||||
|
||||
$row = pwg_db_fetch_assoc(pwg_query($query));
|
||||
if (isset($row['id']) and $conf['password_verify']($password, $row['password'], $row['id']))
|
||||
if (isset($row['id']) and $conf['password_verify'](stripslashes($password), $row['password'], $row['id']))
|
||||
{
|
||||
$user_found = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue