mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-07 12:26:12 +08:00
Fix: ignoring of returned error value
This commit is contained in:
parent
4c4cd6eb4d
commit
c074d6e2ae
1 changed files with 1 additions and 1 deletions
|
@ -118,7 +118,7 @@ func VerifyUserToken(tokenString string) (username string, networks []string, is
|
||||||
// check that user exists
|
// check that user exists
|
||||||
user, err = GetUser(claims.UserName)
|
user, err = GetUser(claims.UserName)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", nil, false, errors.New("user does not exist")
|
return "", nil, false, err
|
||||||
}
|
}
|
||||||
|
|
||||||
if user.UserName != "" {
|
if user.UserName != "" {
|
||||||
|
|
Loading…
Add table
Reference in a new issue