1
0
Fork 0
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:
Jeremy Lin 2020-04-09 20:55:08 -07:00
commit 0a68de6c24
2 changed files with 10 additions and 2 deletions

View file

@ -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];
}