diff --git a/classes/pref/users.php b/classes/pref/users.php index cd56b4f24..f228ab390 100644 --- a/classes/pref/users.php +++ b/classes/pref/users.php @@ -116,6 +116,7 @@ class Pref_Users extends Handler_Administrative { $user->login = mb_strtolower($login); $user->access_level = (int) clean($_REQUEST["access_level"]); $user->email = clean($_REQUEST["email"]); + $user->otp_enabled = checkbox_to_sql_bool($_REQUEST["otp_enabled"]); $user->save(); } diff --git a/js/PrefUsers.js b/js/PrefUsers.js index 109782f6c..378c97154 100644 --- a/js/PrefUsers.js +++ b/js/PrefUsers.js @@ -59,8 +59,6 @@ const Users = {