mirror of
https://github.com/dani-garcia/vaultwarden.wiki.git
synced 2026-10-25 10:06:48 +02:00
Emergency Access cleanup
This commit contains mostly superficial user-facing cleanup, to be followed up with more extensive cleanup and fixes in the API implementation.
This commit is contained in:
1 parent
016fe2269e
commit
cee3fd5ba2
21 files changed
+101
-101
No files matched your search
@@ -91,10 +91,9 @@ fn register(data: JsonUpcase<RegisterData>, conn: DbConn) -> EmptyResult {
|
||||
user
|
||||
} else if CONFIG.is_signup_allowed(&email) {
|
||||
// check if it's invited by emergency contact
|
||||
if EmergencyAccess::find_invited_by_grantee_email(&data.Email, &conn).is_some() {
|
||||
user
|
||||
} else {
|
||||
err!("Account with this email already exists")
|
||||
match EmergencyAccess::find_invited_by_grantee_email(&data.Email, &conn) {
|
||||
Some(_) => user,
|
||||
_ => err!("Account with this email already exists"),
|
||||
}
|
||||
} else {
|
||||
err!("Registration not allowed or user already exists")
|
||||
|
||||
Reference in new issue
Block a user