From 8cd62d4d4aa369fc631ed590e3792f3187afa0c8 Mon Sep 17 00:00:00 2001 From: illode <114271894+illode@users.noreply.github.com> Date: Tue, 6 Feb 2024 03:36:22 +0000 Subject: [PATCH] Credential update tweaks (#2475) * Make the Credential Update page more user-friendly --- CONTRIBUTORS.md | 2 + .../user/src/components/create_reset_code.rs | 2 +- server/web_ui/user/src/components/profile.rs | 2 +- server/web_ui/user/src/credential/reset.rs | 94 ++++++++++--------- .../web_ui/user/src/credential/totpmodal.rs | 29 ++++++ server/web_ui/user/src/views/profile.rs | 2 +- 6 files changed, 86 insertions(+), 45 deletions(-) diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 486433821..3bd83623a 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -33,8 +33,10 @@ - philipcristiano - Jianchen Zhao (bolu61) - Allan Zhang (allan2) +- illode - Jinna Kiisuo (jinnatar) + ## Acknowledgements - M. Gerstner diff --git a/server/web_ui/user/src/components/create_reset_code.rs b/server/web_ui/user/src/components/create_reset_code.rs index 2f41d4fc3..7d0a4bbd6 100644 --- a/server/web_ui/user/src/components/create_reset_code.rs +++ b/server/web_ui/user/src/components/create_reset_code.rs @@ -178,7 +178,7 @@ impl Component for CreateResetCode { }) } > - { "Update your Authentication Settings on Another Device" } + { "Add another device to your account" } +

{ "An authentication app is needed to generate TOTP codes"} +

+

+ { match &self.secret { TotpValue::Secret(secret) => { diff --git a/server/web_ui/user/src/views/profile.rs b/server/web_ui/user/src/views/profile.rs index 67be954e2..0cfb0b442 100644 --- a/server/web_ui/user/src/views/profile.rs +++ b/server/web_ui/user/src/views/profile.rs @@ -225,7 +225,7 @@ impl ProfileApp { }) } > - { "Password and Authentication Settings" } + { "Authentication Settings" }