Browse Source

Merge f852256d3f into 0cefa4cca7

pull/7494/merge
spyesx 6 days ago
committed by GitHub
parent
commit
279c38a217
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 5
      src/api/admin.rs

5
src/api/admin.rs

@ -98,8 +98,11 @@ static CAN_BACKUP: LazyLock<bool> = LazyLock::new(|| ACTIVE_DB_TYPE.get().is_som
static CAN_BACKUP: LazyLock<bool> = LazyLock::new(|| false);
#[get("/")]
fn admin_disabled() -> &'static str {
fn admin_disabled() -> (Status, &'static str) {
(
Status::ServiceUnavailable,
"The admin panel is disabled, please configure the 'ADMIN_TOKEN' variable to enable it"
)
}
const COOKIE_NAME: &str = "VW_ADMIN";

Loading…
Cancel
Save