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:
parent
700e084101
commit
69036cc6a4
3 changed files with 32 additions and 4 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue