CHANGE: added team page + working on function

This commit is contained in:
2025-02-24 22:11:28 +01:00
parent 5de50b6304
commit 0bb12318cc
17 changed files with 516 additions and 35 deletions

View File

@@ -55,7 +55,7 @@ func createBooking(w http.ResponseWriter, r *http.Request) {
}
func checkPassword(r *http.Request) bool {
authToken := helper.GetEnv("apiToken", "dont_access")
authToken := helper.GetEnv("API_TOKEN", "dont_access")
authHeaders := r.Header.Get("Authorization")
_authStart := len("Bearer ")
return authToken == authHeaders[_authStart:]