]> git.wh0rd.org Git - tt-rss.git/commitdiff
disable OTP on user password reset
authorAndrew Dolgov <noreply@fakecake.org>
Sun, 9 Mar 2014 06:33:41 +0000 (10:33 +0400)
committerAndrew Dolgov <noreply@fakecake.org>
Sun, 9 Mar 2014 06:33:41 +0000 (10:33 +0400)
classes/pref/users.php

index 6db7d558b5d1702a7196a520bdd3f2529e9b10b3..a5d48ac96ea8fa97b4676684ae67f950b0b3816c 100644 (file)
@@ -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) {