mirror of
https://github.com/dani-garcia/vaultwarden.wiki.git
synced 2026-10-25 09:06:47 +02:00
Implement admin ability to enable/disable users
This commit is contained in:
1 parent
9824d94a1c
commit
043aa27aa3
13 files changed
+63
No files matched your search
@@ -102,6 +102,14 @@ fn _password_login(data: ConnectData, conn: DbConn, ip: &ClientIp) -> JsonResult
|
||||
)
|
||||
}
|
||||
|
||||
// Check if the user is disabled
|
||||
if !user.enabled {
|
||||
err!(
|
||||
"This user has been disabled",
|
||||
format!("IP: {}. Username: {}.", ip.ip, username)
|
||||
)
|
||||
}
|
||||
|
||||
let now = Local::now();
|
||||
|
||||
if user.verified_at.is_none() && CONFIG.mail_enabled() && CONFIG.signups_verify() {
|
||||
|
||||
Reference in new issue
Block a user