From: Andrew Dolgov Date: Sun, 9 Mar 2014 06:33:41 +0000 (+0400) Subject: disable OTP on user password reset X-Git-Tag: 1.12~28 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=b41c5741fef5a3dc93dcf4540c6ee6c1d6fb17e3;p=tt-rss.git disable OTP on user password reset --- diff --git a/classes/pref/users.php b/classes/pref/users.php index 6db7d558..a5d48ac9 100644 --- a/classes/pref/users.php +++ b/classes/pref/users.php @@ -258,7 +258,7 @@ class Pref_Users extends Handler_Protected { $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'"); if ($show_password) {