disable OTP on user password reset

This commit is contained in:
Andrew Dolgov 2014-03-09 10:33:41 +04:00
parent e95bb179a8
commit b41c5741fe
1 changed files with 1 additions and 1 deletions

View File

@ -258,7 +258,7 @@ class Pref_Users extends Handler_Protected {
$pwd_hash = encrypt_password($tmp_user_pwd, $new_salt, true); $pwd_hash = encrypt_password($tmp_user_pwd, $new_salt, true);
db_query("UPDATE ttrss_users SET pwd_hash = '$pwd_hash', salt = '$new_salt' db_query("UPDATE ttrss_users SET pwd_hash = '$pwd_hash', salt = '$new_salt', otp_enabled = false
WHERE id = '$uid'"); WHERE id = '$uid'");
if ($show_password) { if ($show_password) {