1
0
Fork 0
mirror of https://github.com/dani-garcia/vaultwarden.git synced 2025-06-17 08:10:07 +00:00

Add disabled user badge (no password) and deauthorize button to admin page.

This commit is contained in:
Daniel García 2019-01-26 19:28:54 +01:00
parent 700e084101
commit 69036cc6a4
No known key found for this signature in database
GPG key ID: FC8A7D14C3CD543A
3 changed files with 32 additions and 4 deletions

View file

@ -120,6 +120,7 @@ impl User {
let twofactor_enabled = !TwoFactor::find_by_user(&self.uuid, conn).is_empty();
json!({
"_Enabled": !self.password_hash.is_empty(),
"Id": self.uuid,
"Name": self.name,
"Email": self.email,