Index: branches/5.2.x/core/units/helpers/user_helper.php =================================================================== diff -u -N -r14631 -r14726 --- branches/5.2.x/core/units/helpers/user_helper.php (.../user_helper.php) (revision 14631) +++ branches/5.2.x/core/units/helpers/user_helper.php (.../user_helper.php) (revision 14726) @@ -1,6 +1,6 @@ Clear($user_id); - $object->SetDBField('Login', 'root'); + $object->SetDBField('Username', 'root'); if (!$dry_run) { $this->loginUserById($user_id, $remember_login_cookie); @@ -146,7 +146,7 @@ } /** - * Login username by it's PortalUserId + * Login user by it's id * * @param int $user_id * @param bool $remember_login_cookie @@ -323,7 +323,7 @@ $sql = 'SELECT PortalUserId FROM ' . TABLE_PREFIX . 'PortalUser - WHERE (Email = %1$s OR Login = %1$s) AND (Password = %2$s)'; + WHERE (Email = %1$s OR Username = %1$s) AND (Password = %2$s)'; return $this->Conn->GetOne( sprintf($sql, $this->Conn->qstr($username), $this->Conn->qstr($password) ) ); }