mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-09-19 08:02:43 +00:00
Some formatting and dependency updates
This commit is contained in:
parent
7d2bc9e162
commit
04922f6aa0
6 changed files with 131 additions and 147 deletions
|
@ -196,8 +196,7 @@ impl<'a, 'r> FromRequest<'a, 'r> for AdminToken {
|
|||
fn from_request(request: &'a Request<'r>) -> request::Outcome<Self, Self::Error> {
|
||||
if CONFIG.disable_admin_token() {
|
||||
Outcome::Success(AdminToken {})
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
let mut cookies = request.cookies();
|
||||
|
||||
let access_token = match cookies.get(COOKIE_NAME) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue