Skip to content

Commit

Permalink
Merge branch '2018.09'
Browse files Browse the repository at this point in the history
  • Loading branch information
glye committed Oct 31, 2018
2 parents 2df3ca1 + 7f56928 commit baab3d2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions kernel/classes/datatypes/ezuser/ezuser.php
Expand Up @@ -783,6 +783,11 @@ protected static function loginFailed( $userID = false, $login )
*/
protected static function _loginUser( $login, $password, $authenticationMatch = false )
{
if ( $login == '' || $password == '' )
{
return false;
}

$http = eZHTTPTool::instance();
$db = eZDB::instance();

Expand Down Expand Up @@ -821,6 +826,7 @@ protected static function _loginUser( $login, $password, $authenticationMatch =
WHERE ( $loginText ) AND
ezcontentobject.status='$contentObjectStatus' AND
ezcontentobject.id=contentobject_id AND
password_hash_type!=0 AND
( ( password_hash_type!=4 ) OR
( password_hash_type=4 AND
password_hash=PASSWORD('$passwordEscaped') ) )";
Expand All @@ -831,6 +837,7 @@ protected static function _loginUser( $login, $password, $authenticationMatch =
password_hash_type, email, login
FROM ezuser, ezcontentobject
WHERE ( $loginText )
AND password_hash_type!=0
AND ezcontentobject.status='$contentObjectStatus'
AND ezcontentobject.id=contentobject_id";
}
Expand Down

0 comments on commit baab3d2

Please sign in to comment.