CHANGE: added team page + working on function
This commit is contained in:
@@ -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:]
|
||||
|
||||
Reference in New Issue
Block a user