Error messages updated. While Haha! is awesome, it is not very descriptive.

This commit is contained in:
Storm Dragon
2026-07-07 16:54:28 -04:00
parent 4e210db57a
commit e31bffd256
4 changed files with 31 additions and 6 deletions
+4 -2
View File
@@ -25,7 +25,8 @@ func checkAdmin(w http.ResponseWriter, r *http.Request) bool {
ok, _ = adminMatch(username, password)
}
if !ok {
failAuthentication(w, "/skald-api/")
failAuthentication(w, "/skald-api/",
"Authentication required. Provide valid administrator credentials.")
return false
}
return true
@@ -71,7 +72,8 @@ func checkPasswordAdmin(w http.ResponseWriter, r *http.Request, hallname, user s
}
}
}
failAuthentication(w, "/skald-api/")
failAuthentication(w, "/skald-api/",
"Authentication required. Provide valid administrator credentials.")
return false
}