mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-26 09:46:00 +03:00
[PR #555] [MERGED] Add Email 2FA login #2754
Labels
No labels
SSO
Third party
better for forum
bug
bug
documentation
duplicate
enhancement
future Vault
future Vault
future Vault
good first issue
help wanted
low priority
notes
pull-request
question
troubleshooting
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vaultwarden#2754
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/dani-garcia/vaultwarden/pull/555
Author: @vplme
Created: 8/4/2019
Status: ✅ Merged
Merged: 8/27/2019
Merged by: @dani-garcia
Base:
master← Head:email-codes📝 Commits (10+)
0b60f20Add email message for twofactor email codes27e0e41Add email authenticator logic29aedd3Add email code logic and move two_factor into separate modulesefd8d9fRemove some unused imports, unneeded mut variables6d460b4Use saved token for email 2fa codes5609103Use ring to generate email tokenad2225bAdd configuration options for Email 2FA591ae10Get token from single u64c99df1cCompare token using crypto::ct_eq5d50b1eMerge remote-tracking branch 'upstream/master' into email-codes📊 Changes
13 files changed (+1674 additions, -1064 deletions)
View changed files
➖
src/api/core/two_factor.rs(+0 -1037)➕
src/api/core/two_factor/authenticator.rs(+120 -0)➕
src/api/core/two_factor/duo.rs(+346 -0)➕
src/api/core/two_factor/email.rs(+341 -0)➕
src/api/core/two_factor/mod.rs(+146 -0)➕
src/api/core/two_factor/u2f.rs(+315 -0)➕
src/api/core/two_factor/yubikey.rs(+194 -0)📝
src/api/identity.rs(+32 -19)📝
src/config.rs(+21 -0)📝
src/db/models/two_factor.rs(+8 -8)📝
src/mail.rs(+13 -0)➕
src/static/templates/email/twofactor_email.hbs(+9 -0)➕
src/static/templates/email/twofactor_email.html.hbs(+129 -0)📄 Description
datafield. Is this a reasonable solution?TwoFactorType ::EmailVerificationChallengeto show that an email has not been verified yet. After verification it is ofTwoFactorType::Emailtype.If merged:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.