Skip to content

Commit

Permalink
Dev: Fixed issue : unable to reset password (password lost)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shnoulle committed Nov 17, 2017
1 parent 0badaa7 commit 761f2ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/models/User.php
Expand Up @@ -226,7 +226,7 @@ public static function findByUsername($sUserName)
*/
public static function updatePassword($iUserID, $sPassword)
{
return User::model()->updateByPk($iUserID, password_hash($sPassword,PASSWORD_DEFAULT));
return User::model()->updateByPk($iUserID, array('password'=>password_hash($sPassword,PASSWORD_DEFAULT)));
}

/**
Expand Down

0 comments on commit 761f2ea

Please sign in to comment.