This repository has been archived by the owner on Apr 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Add support for MFA when logging in
- Loading branch information
1 parent
2c892e8
commit 0f219cd
Showing
6 changed files
with
103 additions
and
20 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
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
export const TWO_FACTOR_TOKEN = 'TWO_FACTOR_TOKEN'; | ||
export const MULTI_FACTOR_TOKEN = 'MULTI_FACTOR_TOKEN'; | ||
export const PASSWORD_RESET_TOKEN = 'PASSWORD_RESET_TOKEN'; | ||
export const EMAIL_VERIFY_TOKEN = 'EMAIL_VERIFY_TOKEN'; | ||
export const APPROVE_SUBNET_TOKEN = 'APPROVE_SUBNET_TOKEN'; | ||
export const EMAIL_MFA_TOKEN = 'EMAIL_MFA_TOKEN'; |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Approve your login | ||
|
||
Hi {{name}}, | ||
|
||
Someone (hopefully you) logged in to your account, but you'll have to approve it. | ||
|
||
<a href="{{ link }}" class="btn btn-primary">Approve this login</a> | ||
|
||
Note that this link is valid for {{ minutes }} minutes only. If you didn't request this email, you can just ignore it; we won't give anyone else access to your account. |