-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
30 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,8 +80,6 @@ | |
/* Confirm Sign In with Code */ | ||
"authenticator.confirmSignInWithCode.button.submit" = "Submit"; | ||
"authenticator.confirmSignInWithCode.button.backToSignIn" = "Back to Sign In"; | ||
"authenticator.confirmSignInWithCode.field.email.code.label" = "Enter the verification code sent to your email to complete this sign-in."; | ||
"authenticator.confirmSignInWithCode.field.phone.code.label" = "Enter the verification code sent to your phone to complete this sign-in."; | ||
|
||
/* Confirm Sign In with TOTP */ | ||
"authenticator.confirmSignInWithCode.totp.title" = "Enter your one-time passcode"; | ||
|
@@ -91,7 +89,7 @@ | |
"authenticator.confirmSignInWithCode.totp.button.backToSignIn" = "Back to Sign In"; | ||
|
||
/* Continue Sign In with MFA Setup Selection */ | ||
"authenticator.continueSignInWithMFASetupSelection.email.radioButton.title" = "Email"; | ||
"authenticator.continueSignInWithMFASetupSelection.email.radioButton.title" = "Email Message"; | ||
"authenticator.continueSignInWithMFASetupSelection.totp.radioButton.title" = "Authenticator App (TOTP)"; | ||
"authenticator.continueSignInWithMFASetupSelection.button.continue" = "Continue"; | ||
"authenticator.continueSignInWithMFASetupSelection.title" = "Choose your preferred two-factor authentication method to set up"; | ||
|
@@ -109,7 +107,7 @@ | |
"authenticator.continueSignInWithMFASelection.subtitle" = "For added security, choose how you want to verify your identity for this sign-in."; | ||
"authenticator.continueSignInWithMFASelection.sms.radioButton.title" = "Text Message (SMS)"; | ||
"authenticator.continueSignInWithMFASelection.totp.radioButton.title" = "Authenticator App (TOTP)"; | ||
"authenticator.continueSignInWithMFASelection.email.radioButton.title" = "Email"; | ||
"authenticator.continueSignInWithMFASelection.email.radioButton.title" = "Email Message"; | ||
"authenticator.continueSignInWithMFASelection.button.submit" = "Continue"; | ||
"authenticator.continueSignInWithMFASelection.button.backToSignIn" = "Back to Sign In"; | ||
|
||
|
@@ -176,8 +174,8 @@ | |
"authenticator.validator.field.phoneNumber.format" = "Invalid phone number"; | ||
|
||
/* Authenticator Banner Messages */ | ||
"authenticator.banner.sendCode" = "A confirmation code has been sent to %@"; // Argument is the destination where a code was sent. E.g. "[email protected]" | ||
"authenticator.banner.sendCodeGeneric" = "A confirmation code has been sent"; | ||
"authenticator.banner.sendCode" = "A verification code has been sent to %@"; // Argument is the destination where a code was sent. E.g. "[email protected]" | ||
"authenticator.banner.sendCodeGeneric" = "A verification code has been sent"; | ||
|
||
/* Authenticator Error View */ | ||
"authenticator.authenticatorError.title" = "Something went wrong"; | ||
|
@@ -189,9 +187,9 @@ | |
"authenticator.authError.continueSignInWithMFASelection.noSelectionError" = "Please select an MFA method to continue"; | ||
"authenticator.unknownError" = "Sorry, something went wrong"; | ||
|
||
"authenticator.cognitoError.codeDelivery" = "Could not send confirmation code"; | ||
"authenticator.cognitoError.codeExpired" = "Confirmation code has expired"; | ||
"authenticator.cognitoError.codeMismatch" = "Incorrect confirmation code"; | ||
"authenticator.cognitoError.codeDelivery" = "Could not send verification code"; | ||
"authenticator.cognitoError.codeExpired" = "Verification code has expired"; | ||
"authenticator.cognitoError.codeMismatch" = "Incorrect verification code"; | ||
"authenticator.cognitoError.invalidPassword" = "The provided password is not valid"; | ||
"authenticator.cognitoError.network" = "Please check your connectivity"; | ||
"authenticator.cognitoError.usernameExists" = "Username already exists"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -99,6 +99,14 @@ class ConfirmSignInWithCodeStateTests: XCTestCase { | |
XCTAssertEqual(deliveryDetails.destination, destination) | ||
} | ||
|
||
func testDeliveryDetails_onConfirmSignInWithEmailMFACodeStep_shouldReturnDetails() throws { | ||
let destination = DeliveryDestination.email("[email protected]") | ||
authenticatorState.mockedStep = .confirmSignInWithOTP(deliveryDetails: .init(destination: destination)) | ||
|
||
let deliveryDetails = try XCTUnwrap(state.deliveryDetails) | ||
XCTAssertEqual(deliveryDetails.destination, destination) | ||
} | ||
|
||
func testDeliveryDetails_onUnexpectedStep_shouldReturnNil() throws { | ||
let destination = DeliveryDestination.sms("123456789") | ||
authenticatorState.mockedStep = .confirmSignUp(deliveryDetails: .init(destination: destination)) | ||
|