mirror of
https://github.com/dani-garcia/vaultwarden.wiki.git
synced 2026-10-25 10:16:47 +02:00
Allow email changes for existing accounts even when signups are disabled
This commit is contained in:
1 parent
c5d7e3f2bc
commit
a314933557
3 files changed
+9
-8
No files matched your search
@@ -379,8 +379,8 @@ fn post_email_token(data: JsonUpcase<EmailTokenData>, headers: Headers, conn: Db
|
||||
err!("Email already in use");
|
||||
}
|
||||
|
||||
if !CONFIG.is_signup_allowed(&data.NewEmail) {
|
||||
err!("Email cannot be changed to this address");
|
||||
if !CONFIG.is_email_domain_allowed(&data.NewEmail) {
|
||||
err!("Email domain not allowed");
|
||||
}
|
||||
|
||||
let token = crypto::generate_token(6)?;
|
||||
|
||||
Reference in new issue
Block a user