mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-25 17:25:57 +03:00
[PR #666] [MERGED] Fix 2FA email not sending #2774
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#2774
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/666
Author: @vplme
Created: 10/15/2019
Status: ✅ Merged
Merged: 10/15/2019
Merged by: @dani-garcia
Base:
master← Head:fix-2fa-email📝 Commits (2)
18bc833Send email when preparing 2FA JsonError2edecf3Use user_uuid instead of mut twofactor📊 Changes
2 files changed (+16 additions, -2 deletions)
View changed files
📝
src/api/core/two_factor/email.rs(+9 -1)📝
src/api/identity.rs(+7 -1)📄 Description
The 2FA email was not sent when email was the only 2FA method available.
Moved generate token, save token and send email logic to separate function.
Called from the separate
send-email-loginAPI call and when Email is the only 2FA provider in theinvalid grantJsonError response.Fixes #611
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.