1
0
Fork 0
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:
Daniel García 2019-03-03 16:11:55 +01:00
commit 04922f6aa0
No known key found for this signature in database
GPG key ID: FC8A7D14C3CD543A
6 changed files with 131 additions and 147 deletions

View file

@ -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) {