Error messages updated. While Haha! is awesome, it is not very descriptive.
This commit is contained in:
+4
-2
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user