From 3751379f1e9a4c215fb6eb898b4ccc67659b9ace Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Tue, 10 May 2022 21:51:50 +0700 Subject: initial commit 2 --- addons/auth_totp/views/templates.xml | 45 +++++++++ addons/auth_totp/views/user_preferences.xml | 142 ++++++++++++++++++++++++++++ 2 files changed, 187 insertions(+) create mode 100644 addons/auth_totp/views/templates.xml create mode 100644 addons/auth_totp/views/user_preferences.xml (limited to 'addons/auth_totp/views') diff --git a/addons/auth_totp/views/templates.xml b/addons/auth_totp/views/templates.xml new file mode 100644 index 00000000..100dbbc4 --- /dev/null +++ b/addons/auth_totp/views/templates.xml @@ -0,0 +1,45 @@ + + + + diff --git a/addons/auth_totp/views/user_preferences.xml b/addons/auth_totp/views/user_preferences.xml new file mode 100644 index 00000000..81c7336a --- /dev/null +++ b/addons/auth_totp/views/user_preferences.xml @@ -0,0 +1,142 @@ + + + users list: add totp status + res.users + + + + + + + + + user form: add totp status + res.users + + + + + +
+ + + Two-factor authentication not enabled + +
+
+ +
+ + + Two-factor authentication enabled + +
+
+
+
+
+ + + Disable TOTP on users + + + list + code + + action = records.totp_disable() + + + + + + auth_totp wizard + auth_totp.wizard + +
+ +
+
+

Scan this barcode with your app

+
+ Scan the image below with the authenticator app on your phone.
+ If you cannot scan the barcode, here are some alternative options: + + +
+
+

Your two-factor secret:

+ +
+
+
+ + + +

Enter the 6-digit code from your app

+
+ After scanning the barcode, the app will display a 6-digit code that you + should enter below. Don't worry if the code changes in the app, + it stays valid a bit longer. +
+
+ + +
+ +
+
+
+
+
+
+
+
+ + + users preference: totp + res.users + + + + + +
-- cgit v1.2.3