mirror of
https://github.com/outbackdingo/databunker.git
synced 2026-01-27 10:18:45 +00:00
do not generate error message twice
This commit is contained in:
@@ -18,7 +18,6 @@ func (e mainEnv) userCreate(w http.ResponseWriter, r *http.Request, ps httproute
|
||||
// anonymous user can not create user record, check token
|
||||
if e.enforceAuth(w, r, event) == "" {
|
||||
fmt.Println("failed to create user, access denied, try to change Create_user_without_access_token")
|
||||
returnError(w, r, "internal error", 405, nil, event)
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user