mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-05-31 07:53:56 +00:00
Initial version of admin panel, list users and reload user list works. No serious auth method yet, password is 'token123'
This commit is contained in:
parent
9a8cae836b
commit
5fecf09631
8 changed files with 228 additions and 6 deletions
|
@ -174,7 +174,7 @@ impl<'a, 'r> FromRequest<'a, 'r> for Headers {
|
|||
};
|
||||
|
||||
// Get access_token
|
||||
let access_token: &str = match request.headers().get_one("Authorization") {
|
||||
let access_token: &str = match headers.get_one("Authorization") {
|
||||
Some(a) => match a.rsplit("Bearer ").next() {
|
||||
Some(split) => split,
|
||||
None => err_handler!("No access token provided"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue