From 50e9f46478e3f0ebd6fc3febc0f70ea95fa7b686 Mon Sep 17 00:00:00 2001 From: Arie Peterson <arie@greenhost.nl> Date: Thu, 9 Feb 2023 11:06:59 +0100 Subject: [PATCH] Fix button label on TOTP step during login --- backend/web/static/base.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/backend/web/static/base.js b/backend/web/static/base.js index 847f3c15..566f8db7 100644 --- a/backend/web/static/base.js +++ b/backend/web/static/base.js @@ -386,7 +386,12 @@ function getFormElement(node, context) { label = 'Forget saved TOTP device'; } else if (node.group == 'totp') { - label = 'Enroll TOTP device'; + if (context == 'settings') { + label = 'Enroll TOTP device'; + } + else { + label = 'Verify'; + } } if (name == 'method' && value == 'password') { if (context == 'settings') { -- GitLab