mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-06-12 22:00:07 +00:00
Implement poor man's admin panel
This commit is contained in:
parent
ce4fedf191
commit
a28caa33ef
12 changed files with 209 additions and 71 deletions
|
@ -151,9 +151,10 @@ fn clear_device_token(uuid: String, data: Json<Value>, headers: Headers, conn: D
|
|||
err!("Device not owned by user")
|
||||
}
|
||||
|
||||
device.delete(&conn);
|
||||
|
||||
Ok(())
|
||||
match device.delete(&conn) {
|
||||
Ok(()) => Ok(()),
|
||||
Err(_) => err!("Failed deleting device")
|
||||
}
|
||||
}
|
||||
|
||||
#[put("/devices/identifier/<uuid>/token", data = "<data>")]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue