Compare commits
1 Commits
ezconf/v0.
...
hwsauth/v0
| Author | SHA1 | Date | |
|---|---|---|---|
| 87027e9761 |
@@ -2,6 +2,7 @@ package hwsauth
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
"reflect"
|
||||
|
||||
"git.haelnorr.com/h/golib/jwt"
|
||||
"github.com/pkg/errors"
|
||||
@@ -18,7 +19,9 @@ func (auth *Authenticator[T, TX]) refreshAuthTokens(
|
||||
if err != nil {
|
||||
return getNil[T](), errors.Wrap(err, "auth.load")
|
||||
}
|
||||
|
||||
if reflect.ValueOf(model).IsNil() {
|
||||
return getNil[T](), errors.New("no user matching JWT in database")
|
||||
}
|
||||
rememberMe := map[string]bool{
|
||||
"session": false,
|
||||
"exp": true,
|
||||
|
||||
Reference in New Issue
Block a user