geforkt von mirrored/vaultwarden
Make sure an invitation is created when reinviting
Dieser Commit ist enthalten in:
Ursprung
50eeb4f651
Commit
f1161c65fb
1 geänderte Dateien mit 3 neuen und 2 gelöschten Zeilen
|
@ -545,8 +545,9 @@ fn reinvite_user(org_id: String, user_org: String, headers: AdminHeaders, conn:
|
||||||
Some(user) => user,
|
Some(user) => user,
|
||||||
None => err!("User not found."),
|
None => err!("User not found."),
|
||||||
};
|
};
|
||||||
|
|
||||||
Invitation::take(&user.email, &conn);
|
let mut invitation = Invitation::new(user.email.clone());
|
||||||
|
invitation.save(&conn)?;
|
||||||
|
|
||||||
let org_name = match Organization::find_by_uuid(&org_id, &conn) {
|
let org_name = match Organization::find_by_uuid(&org_id, &conn) {
|
||||||
Some(org) => org.name,
|
Some(org) => org.name,
|
||||||
|
|
Laden …
In neuem Issue referenzieren