This commit is contained in:
Tom 2023-06-22 13:30:44 +02:00
parent 4b93d7dace
commit effa79aacd
10 changed files with 56 additions and 20 deletions

View file

@ -23,7 +23,7 @@ func (auth *Auth) Protect(handler http.Handler, AllowToken bool, scope component
// load the user in the session
// TODO<tokens>: Check if API access is allowed
user, token, err := auth.UserOf(r)
user, token, err := auth.SessionOf(r)
if err != nil {
goto err
}