From a7bf3d3be9db60cf7ba3e0b3455822fffff79761 Mon Sep 17 00:00:00 2001 From: Antoine Nguyen Date: Sat, 6 Jul 2024 16:22:03 +0200 Subject: [PATCH] Improved webauthn support --- .../components/account/BackupCodeAuthForm.vue | 3 +- .../src/components/account/FidoAuthForm.vue | 3 +- .../account/RecoveryCodesResetDialog.vue | 12 +++--- .../src/components/account/TotpAuthForm.vue | 1 + frontend/src/views/account/SettingsView.vue | 2 +- modoboa/core/api/v2/viewsets.py | 4 +- modoboa/core/fido2_auth.py | 42 +++++++++---------- modoboa/core/views/auth.py | 6 ++- .../registration/twofactor_code_verify.html | 2 +- 9 files changed, 39 insertions(+), 36 deletions(-) diff --git a/frontend/src/components/account/BackupCodeAuthForm.vue b/frontend/src/components/account/BackupCodeAuthForm.vue index e94d1f41f..a4132db29 100644 --- a/frontend/src/components/account/BackupCodeAuthForm.vue +++ b/frontend/src/components/account/BackupCodeAuthForm.vue @@ -11,7 +11,7 @@ {{ $gettext( - "You already have generated backup codes for this account. If you don't remember them or have used them all, you generate new ones." + "You already have generated backup codes for this account. If you don't remember them or have used them all, you can generate new ones." ) }} @@ -22,6 +22,7 @@ autocomplete="new-password" type="password" variant="outlined" + density="compact" :rules="[rules.required]" :error-messages="passwordError" /> diff --git a/frontend/src/components/account/FidoAuthForm.vue b/frontend/src/components/account/FidoAuthForm.vue index 2c1995e6b..014c36f29 100644 --- a/frontend/src/components/account/FidoAuthForm.vue +++ b/frontend/src/components/account/FidoAuthForm.vue @@ -12,7 +12,7 @@
{{ $gettext( - "You don't have any WebAuthN registered as a second authentication method." + "You don't have any WebAuthN device registered as a second authentication method." ) }}
@@ -22,7 +22,6 @@