feat(login): add OTP (email and sms) (#6353)

* feat: login with otp

* fix(i18n): japanese translation

* add missing files

* fix provider change

* add event types translations to en

* add tests

* resourceOwner

* remove unused handler

* fix: secret generators and add comments

* add setup step

* rename

* linting

* fix setup

* improve otp handling

* fix autocomplete

* translations for login and notifications

* translations for event types

* changes from review

* check selected mfa type
This commit is contained in:
Livio Spring
2023-08-15 14:47:05 +02:00
committed by GitHub
parent faa9ed4de9
commit 7c494fd219
76 changed files with 3203 additions and 88 deletions

View File

@@ -89,6 +89,8 @@ InitMFAPrompt:
Description: 2-factor authentication gives you an additional security for your user account. This ensures that only you have access to your account.
Provider0: Authenticator App (e.g Google/Microsoft Authenticator, Authy)
Provider1: Device dependent (e.g FaceID, Windows Hello, Fingerprint)
Provider3: OTP SMS
Provider4: OTP Email
NextButtonText: next
SkipButtonText: skip
@@ -101,6 +103,16 @@ InitMFAOTP:
NextButtonText: next
CancelButtonText: cancel
InitMFAOTPSMS:
Title: 2-Factor Verification
DescriptionPhone: Create your 2-factor. Enter your phone number to verify it.
DescriptionCode: Create your 2-factor. Enter the received code to verify your phone number.
PhoneLabel: Phone
CodeLabel: Code
EditButtonText: edit
ResendButtonText: resend code
NextButtonText: next
InitMFAU2F:
Title: Add security key
Description: A security key is a verification method that can be built into your phone, use Bluetooth, or plug directly into your computer's USB port.
@@ -110,7 +122,7 @@ InitMFAU2F:
ErrorRetry: Retry, create a new challenge or choose a different method.
InitMFADone:
Title: Security key verified
Title: 2-factor verified
Description: Awesome! You just successfully set up your 2-factor and made your account way more secure. The Factor has to be entered on each login.
NextButtonText: next
CancelButtonText: cancel
@@ -118,6 +130,8 @@ InitMFADone:
MFAProvider:
Provider0: Authenticator App (e.g Google/Microsoft Authenticator, Authy)
Provider1: Device dependent (e.g FaceID, Windows Hello, Fingerprint)
Provider3: OTP SMS
Provider4: OTP Email
ChooseOther: or choose another option
VerifyMFAOTP:
@@ -126,6 +140,13 @@ VerifyMFAOTP:
CodeLabel: Code
NextButtonText: next
VerifyOTP:
Title: Verify 2-Factor
Description: Verify your second factor
CodeLabel: Code
ResendButtonText: resend code
NextButtonText: next
VerifyMFAU2F:
Title: 2-Factor Verification
Description: Verify your 2-Factor with the registered device (e.g FaceID, Windows Hello, Fingerprint)