mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-07-17 17:51:11 +00:00
Membership::confirm_user_invitations fix and tests
This commit is contained in:
parent
3ec4b0c476
commit
da8be29de0
7 changed files with 381 additions and 190 deletions
|
@ -293,6 +293,8 @@ async fn post_set_password(data: Json<SetPasswordData>, headers: Headers, mut co
|
|||
|
||||
if CONFIG.mail_enabled() {
|
||||
mail::send_set_password(&user.email.to_lowercase(), &user.name).await?;
|
||||
} else {
|
||||
Membership::confirm_user_invitations(&user.uuid, &mut conn).await?;
|
||||
}
|
||||
|
||||
user.save(&mut conn).await?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue