mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-08-30 14:34:48 +00:00
Warn on empty ADMIN_TOKEN
instead of bailing out
The admin page will still be disabled. Fixes #849.
This commit is contained in:
parent
77f95146d6
commit
0a68de6c24
2 changed files with 10 additions and 2 deletions
|
@ -17,7 +17,7 @@ use crate::mail;
|
|||
use crate::CONFIG;
|
||||
|
||||
pub fn routes() -> Vec<Route> {
|
||||
if CONFIG.admin_token().is_none() && !CONFIG.disable_admin_token() {
|
||||
if !CONFIG.disable_admin_token() && !CONFIG.is_admin_token_set() {
|
||||
return routes![admin_disabled];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue