Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: add otp tests #402

Merged
merged 1 commit into from
Jul 10, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions template/config/phrases.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ module.exports = {
INVALID_PASSWORD_STRENGTH: 'Password strength was not strong enough.',
INVALID_PROVIDER: 'We do not support this authentication provider.',
INVALID_RECOVERY_PASSCODE: 'Invalid recovery passcode.',
INVALID_RECOVERY_KEY: 'Invalid recovery key.',
INVALID_RESET_PASSWORD: 'Reset token and email were not valid together.',
INVALID_RESET_TOKEN: 'Reset token provided was invalid.',
INVALID_SESSION_SECRET: 'Invalid session secret.',
Expand Down
44 changes: 43 additions & 1 deletion template/locales/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -168,5 +168,47 @@
"Privacy Policy &#124; <span class=\"notranslate\">Lad</span>": "Privacy Policy &#124; <span class=\"notranslate\">Lad</span>",
"Read our privacy policy": "Read our privacy policy",
"Support &#124; <span class=\"notranslate\">Lad</span>": "Support &#124; <span class=\"notranslate\">Lad</span>",
"Ask Lad your questions or leave comments": "Ask Lad your questions or leave comments"
"Ask Lad your questions or leave comments": "Ask Lad your questions or leave comments",
"Two Factor Auth &#124; <span class=\"notranslate\">Lad</span>": "Two Factor Auth &#124; <span class=\"notranslate\">Lad</span>",
"Authenticate yourself with optional OTP to log in": "Authenticate yourself with optional OTP to log in",
"Please log in to view the page you requested.": "Please log in to view the page you requested.",
"Dashboard &#124; <span class=\"notranslate\">Lad</span>": "Dashboard &#124; <span class=\"notranslate\">Lad</span>",
"Access your Lad account dashboard": "Access your Lad account dashboard",
"Account Recovery": "Account Recovery",
"If you can't access your authenticator app or lose your recovery keys, then you can submit a request for your account to be unlocked.": "If you can't access your authenticator app or lose your recovery keys, then you can submit a request for your account to be unlocked.",
"Verify access to your email address with a code emailed to you.": "Verify access to your email address with a code emailed to you.",
"Wait 3-5 business days for an administrative follow-up email.": "Wait 3-5 business days for an administrative follow-up email.",
"Access to your account will be unlocked for you.": "Access to your account will be unlocked for you.",
"Continue": "Continue",
"Two-Factor Check": "Two-Factor Check",
"Passcode": "Passcode",
"Don't ask me again in this browser": "Don't ask me again in this browser",
"Having trouble?": "Having trouble?",
"Use a recovery key": "Use a recovery key",
"Lose your recovery keys?": "Lose your recovery keys?",
"Request account recovery": "Request account recovery",
"Invalid two-factor authentication passcode.": "Invalid two-factor authentication passcode.",
"Setup OTP": "Setup OTP",
"Download your emergency recovery keys below.": "Download your emergency recovery keys below.",
"Dashboard": "Dashboard",
"My Account": "My Account",
"Profile": "Profile",
"Security": "Security",
"Log out": "Log out",
"Download": "Download",
"Recommended Authenticator Apps": "Recommended Authenticator Apps",
"App": "App",
"Open-Source": "Open-Source",
"Google Play": "Google Play",
"App Store": "App Store",
"F-Droid": "F-Droid",
"<strong>Step 1:</strong> Install and open an <a href=\"#\" data-toggle=\"modal-anchor\" data-target=\"#authenticator-apps-modal\">authenticator app</a>.": "<strong>Step 1:</strong> Install and open an <a href=\"#\" data-toggle=\"modal-anchor\" data-target=\"#authenticator-apps-modal\">authenticator app</a>.",
"<strong>Step 2:</strong> Scan this QR code and enter its generated token:": "<strong>Step 2:</strong> Scan this QR code and enter its generated token:",
"Can’t scan the QR code? Configure with this code": "Can’t scan the QR code? Configure with this code",
"Complete Setup": "Complete Setup",
"Confirm Password": "Confirm Password",
"Recovery Key": "Recovery Key",
"Recovery passcode successful. This passcode will no longer be valid.": "Recovery passcode successful. This passcode will no longer be valid.",
"You have run out of recovery keys. Please download the newly generated recovery keys before continuing.": "You have run out of recovery keys. Please download the newly generated recovery keys before continuing.",
"Invalid recovery key.": "Invalid recovery key."
}
44 changes: 43 additions & 1 deletion template/locales/cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -168,5 +168,47 @@
"Privacy Policy &#124; <span class=\"notranslate\">Lad</span>": "Privacy Policy &#124; <span class=\"notranslate\">Lad</span>",
"Read our privacy policy": "Read our privacy policy",
"Support &#124; <span class=\"notranslate\">Lad</span>": "Support &#124; <span class=\"notranslate\">Lad</span>",
"Ask Lad your questions or leave comments": "Ask Lad your questions or leave comments"
"Ask Lad your questions or leave comments": "Ask Lad your questions or leave comments",
"Two Factor Auth &#124; <span class=\"notranslate\">Lad</span>": "Two Factor Auth &#124; <span class=\"notranslate\">Lad</span>",
"Authenticate yourself with optional OTP to log in": "Authenticate yourself with optional OTP to log in",
"Please log in to view the page you requested.": "Please log in to view the page you requested.",
"Dashboard &#124; <span class=\"notranslate\">Lad</span>": "Dashboard &#124; <span class=\"notranslate\">Lad</span>",
"Access your Lad account dashboard": "Access your Lad account dashboard",
"Account Recovery": "Account Recovery",
"If you can't access your authenticator app or lose your recovery keys, then you can submit a request for your account to be unlocked.": "If you can't access your authenticator app or lose your recovery keys, then you can submit a request for your account to be unlocked.",
"Verify access to your email address with a code emailed to you.": "Verify access to your email address with a code emailed to you.",
"Wait 3-5 business days for an administrative follow-up email.": "Wait 3-5 business days for an administrative follow-up email.",
"Access to your account will be unlocked for you.": "Access to your account will be unlocked for you.",
"Continue": "Continue",
"Two-Factor Check": "Two-Factor Check",
"Passcode": "Passcode",
"Don't ask me again in this browser": "Don't ask me again in this browser",
"Having trouble?": "Having trouble?",
"Use a recovery key": "Use a recovery key",
"Lose your recovery keys?": "Lose your recovery keys?",
"Request account recovery": "Request account recovery",
"Invalid two-factor authentication passcode.": "Invalid two-factor authentication passcode.",
"Setup OTP": "Setup OTP",
"Download your emergency recovery keys below.": "Download your emergency recovery keys below.",
"Dashboard": "Dashboard",
"My Account": "My Account",
"Profile": "Profile",
"Security": "Security",
"Log out": "Log out",
"Download": "Download",
"Recommended Authenticator Apps": "Recommended Authenticator Apps",
"App": "App",
"Open-Source": "Open-Source",
"Google Play": "Google Play",
"App Store": "App Store",
"F-Droid": "F-Droid",
"<strong>Step 1:</strong> Install and open an <a href=\"#\" data-toggle=\"modal-anchor\" data-target=\"#authenticator-apps-modal\">authenticator app</a>.": "<strong>Step 1:</strong> Install and open an <a href=\"#\" data-toggle=\"modal-anchor\" data-target=\"#authenticator-apps-modal\">authenticator app</a>.",
"<strong>Step 2:</strong> Scan this QR code and enter its generated token:": "<strong>Step 2:</strong> Scan this QR code and enter its generated token:",
"Can’t scan the QR code? Configure with this code": "Can’t scan the QR code? Configure with this code",
"Complete Setup": "Complete Setup",
"Confirm Password": "Confirm Password",
"Recovery Key": "Recovery Key",
"Recovery passcode successful. This passcode will no longer be valid.": "Recovery passcode successful. This passcode will no longer be valid.",
"You have run out of recovery keys. Please download the newly generated recovery keys before continuing.": "You have run out of recovery keys. Please download the newly generated recovery keys before continuing.",
"Invalid recovery key.": "Invalid recovery key."
}
44 changes: 43 additions & 1 deletion template/locales/da.json
Original file line number Diff line number Diff line change
Expand Up @@ -168,5 +168,47 @@
"Privacy Policy &#124; <span class=\"notranslate\">Lad</span>": "Privacy Policy &#124; <span class=\"notranslate\">Lad</span>",
"Read our privacy policy": "Read our privacy policy",
"Support &#124; <span class=\"notranslate\">Lad</span>": "Support &#124; <span class=\"notranslate\">Lad</span>",
"Ask Lad your questions or leave comments": "Ask Lad your questions or leave comments"
"Ask Lad your questions or leave comments": "Ask Lad your questions or leave comments",
"Two Factor Auth &#124; <span class=\"notranslate\">Lad</span>": "Two Factor Auth &#124; <span class=\"notranslate\">Lad</span>",
"Authenticate yourself with optional OTP to log in": "Authenticate yourself with optional OTP to log in",
"Please log in to view the page you requested.": "Please log in to view the page you requested.",
"Dashboard &#124; <span class=\"notranslate\">Lad</span>": "Dashboard &#124; <span class=\"notranslate\">Lad</span>",
"Access your Lad account dashboard": "Access your Lad account dashboard",
"Account Recovery": "Account Recovery",
"If you can't access your authenticator app or lose your recovery keys, then you can submit a request for your account to be unlocked.": "If you can't access your authenticator app or lose your recovery keys, then you can submit a request for your account to be unlocked.",
"Verify access to your email address with a code emailed to you.": "Verify access to your email address with a code emailed to you.",
"Wait 3-5 business days for an administrative follow-up email.": "Wait 3-5 business days for an administrative follow-up email.",
"Access to your account will be unlocked for you.": "Access to your account will be unlocked for you.",
"Continue": "Continue",
"Two-Factor Check": "Two-Factor Check",
"Passcode": "Passcode",
"Don't ask me again in this browser": "Don't ask me again in this browser",
"Having trouble?": "Having trouble?",
"Use a recovery key": "Use a recovery key",
"Lose your recovery keys?": "Lose your recovery keys?",
"Request account recovery": "Request account recovery",
"Invalid two-factor authentication passcode.": "Invalid two-factor authentication passcode.",
"Setup OTP": "Setup OTP",
"Download your emergency recovery keys below.": "Download your emergency recovery keys below.",
"Dashboard": "Dashboard",
"My Account": "My Account",
"Profile": "Profile",
"Security": "Security",
"Log out": "Log out",
"Download": "Download",
"Recommended Authenticator Apps": "Recommended Authenticator Apps",
"App": "App",
"Open-Source": "Open-Source",
"Google Play": "Google Play",
"App Store": "App Store",
"F-Droid": "F-Droid",
"<strong>Step 1:</strong> Install and open an <a href=\"#\" data-toggle=\"modal-anchor\" data-target=\"#authenticator-apps-modal\">authenticator app</a>.": "<strong>Step 1:</strong> Install and open an <a href=\"#\" data-toggle=\"modal-anchor\" data-target=\"#authenticator-apps-modal\">authenticator app</a>.",
"<strong>Step 2:</strong> Scan this QR code and enter its generated token:": "<strong>Step 2:</strong> Scan this QR code and enter its generated token:",
"Can’t scan the QR code? Configure with this code": "Can’t scan the QR code? Configure with this code",
"Complete Setup": "Complete Setup",
"Confirm Password": "Confirm Password",
"Recovery Key": "Recovery Key",
"Recovery passcode successful. This passcode will no longer be valid.": "Recovery passcode successful. This passcode will no longer be valid.",
"You have run out of recovery keys. Please download the newly generated recovery keys before continuing.": "You have run out of recovery keys. Please download the newly generated recovery keys before continuing.",
"Invalid recovery key.": "Invalid recovery key."
}
44 changes: 43 additions & 1 deletion template/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -168,5 +168,47 @@
"Privacy Policy &#124; <span class=\"notranslate\">Lad</span>": "Privacy Policy &#124; <span class=\"notranslate\">Lad</span>",
"Read our privacy policy": "Read our privacy policy",
"Support &#124; <span class=\"notranslate\">Lad</span>": "Support &#124; <span class=\"notranslate\">Lad</span>",
"Ask Lad your questions or leave comments": "Ask Lad your questions or leave comments"
"Ask Lad your questions or leave comments": "Ask Lad your questions or leave comments",
"Two Factor Auth &#124; <span class=\"notranslate\">Lad</span>": "Two Factor Auth &#124; <span class=\"notranslate\">Lad</span>",
"Authenticate yourself with optional OTP to log in": "Authenticate yourself with optional OTP to log in",
"Please log in to view the page you requested.": "Please log in to view the page you requested.",
"Dashboard &#124; <span class=\"notranslate\">Lad</span>": "Dashboard &#124; <span class=\"notranslate\">Lad</span>",
"Access your Lad account dashboard": "Access your Lad account dashboard",
"Account Recovery": "Account Recovery",
"If you can't access your authenticator app or lose your recovery keys, then you can submit a request for your account to be unlocked.": "If you can't access your authenticator app or lose your recovery keys, then you can submit a request for your account to be unlocked.",
"Verify access to your email address with a code emailed to you.": "Verify access to your email address with a code emailed to you.",
"Wait 3-5 business days for an administrative follow-up email.": "Wait 3-5 business days for an administrative follow-up email.",
"Access to your account will be unlocked for you.": "Access to your account will be unlocked for you.",
"Continue": "Continue",
"Two-Factor Check": "Two-Factor Check",
"Passcode": "Passcode",
"Don't ask me again in this browser": "Don't ask me again in this browser",
"Having trouble?": "Having trouble?",
"Use a recovery key": "Use a recovery key",
"Lose your recovery keys?": "Lose your recovery keys?",
"Request account recovery": "Request account recovery",
"Invalid two-factor authentication passcode.": "Invalid two-factor authentication passcode.",
"Setup OTP": "Setup OTP",
"Download your emergency recovery keys below.": "Download your emergency recovery keys below.",
"Dashboard": "Dashboard",
"My Account": "My Account",
"Profile": "Profile",
"Security": "Security",
"Log out": "Log out",
"Download": "Download",
"Recommended Authenticator Apps": "Recommended Authenticator Apps",
"App": "App",
"Open-Source": "Open-Source",
"Google Play": "Google Play",
"App Store": "App Store",
"F-Droid": "F-Droid",
"<strong>Step 1:</strong> Install and open an <a href=\"#\" data-toggle=\"modal-anchor\" data-target=\"#authenticator-apps-modal\">authenticator app</a>.": "<strong>Step 1:</strong> Install and open an <a href=\"#\" data-toggle=\"modal-anchor\" data-target=\"#authenticator-apps-modal\">authenticator app</a>.",
"<strong>Step 2:</strong> Scan this QR code and enter its generated token:": "<strong>Step 2:</strong> Scan this QR code and enter its generated token:",
"Can’t scan the QR code? Configure with this code": "Can’t scan the QR code? Configure with this code",
"Complete Setup": "Complete Setup",
"Confirm Password": "Confirm Password",
"Recovery Key": "Recovery Key",
"Recovery passcode successful. This passcode will no longer be valid.": "Recovery passcode successful. This passcode will no longer be valid.",
"You have run out of recovery keys. Please download the newly generated recovery keys before continuing.": "You have run out of recovery keys. Please download the newly generated recovery keys before continuing.",
"Invalid recovery key.": "Invalid recovery key."
}
36 changes: 35 additions & 1 deletion template/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -201,5 +201,39 @@
"Privacy Policy &#124; <span class=\"notranslate\">Lad</span>": "Privacy Policy &#124; <span class=\"notranslate\">Lad</span>",
"Read our privacy policy": "Read our privacy policy",
"Support &#124; <span class=\"notranslate\">Lad</span>": "Support &#124; <span class=\"notranslate\">Lad</span>",
"Ask Lad your questions or leave comments": "Ask Lad your questions or leave comments"
"Ask Lad your questions or leave comments": "Ask Lad your questions or leave comments",
"Two Factor Auth &#124; <span class=\"notranslate\">Lad</span>": "Two Factor Auth &#124; <span class=\"notranslate\">Lad</span>",
"Authenticate yourself with optional OTP to log in": "Authenticate yourself with optional OTP to log in",
"Please log in to view the page you requested.": "Please log in to view the page you requested.",
"Account Recovery": "Account Recovery",
"If you can't access your authenticator app or lose your recovery keys, then you can submit a request for your account to be unlocked.": "If you can't access your authenticator app or lose your recovery keys, then you can submit a request for your account to be unlocked.",
"Verify access to your email address with a code emailed to you.": "Verify access to your email address with a code emailed to you.",
"Wait 3-5 business days for an administrative follow-up email.": "Wait 3-5 business days for an administrative follow-up email.",
"Access to your account will be unlocked for you.": "Access to your account will be unlocked for you.",
"Two-Factor Check": "Two-Factor Check",
"Passcode": "Passcode",
"Don't ask me again in this browser": "Don't ask me again in this browser",
"Having trouble?": "Having trouble?",
"Use a recovery key": "Use a recovery key",
"Lose your recovery keys?": "Lose your recovery keys?",
"Request account recovery": "Request account recovery",
"Invalid two-factor authentication passcode.": "Invalid two-factor authentication passcode.",
"Setup OTP": "Setup OTP",
"Download your emergency recovery keys below.": "Download your emergency recovery keys below.",
"Download": "Download",
"Recommended Authenticator Apps": "Recommended Authenticator Apps",
"App": "App",
"Open-Source": "Open-Source",
"Google Play": "Google Play",
"App Store": "App Store",
"F-Droid": "F-Droid",
"<strong>Step 1:</strong> Install and open an <a href=\"#\" data-toggle=\"modal-anchor\" data-target=\"#authenticator-apps-modal\">authenticator app</a>.": "<strong>Step 1:</strong> Install and open an <a href=\"#\" data-toggle=\"modal-anchor\" data-target=\"#authenticator-apps-modal\">authenticator app</a>.",
"<strong>Step 2:</strong> Scan this QR code and enter its generated token:": "<strong>Step 2:</strong> Scan this QR code and enter its generated token:",
"Can’t scan the QR code? Configure with this code": "Can’t scan the QR code? Configure with this code",
"Complete Setup": "Complete Setup",
"Confirm Password": "Confirm Password",
"Recovery Key": "Recovery Key",
"Recovery passcode successful. This passcode will no longer be valid.": "Recovery passcode successful. This passcode will no longer be valid.",
"You have run out of recovery keys. Please download the newly generated recovery keys before continuing.": "You have run out of recovery keys. Please download the newly generated recovery keys before continuing.",
"Invalid recovery key.": "Invalid recovery key."
}
Loading