Fix: ignoring of returned error value

This commit is contained in:
kayos@tcp.direct 2022-12-07 00:28:06 -08:00
parent 4c4cd6eb4d
commit c074d6e2ae
No known key found for this signature in database
GPG key ID: 4B841471B4BEE979

View file

@ -118,7 +118,7 @@ func VerifyUserToken(tokenString string) (username string, networks []string, is
// check that user exists
user, err = GetUser(claims.UserName)
if err != nil {
return "", nil, false, errors.New("user does not exist")
return "", nil, false, err
}
if user.UserName != "" {