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 = {
-
${__("User")}
-
@@ -71,11 +69,9 @@ const Users = { ${admin_disabled ? App.FormFields.hidden_tag("login", user.login) : ''}
-
-
${__("Authentication")}
+
-
${App.FormFields.select_hash("access_level", @@ -89,11 +85,15 @@ const Users = {
-
+
+ +
-
${__("Options")}
+
-