Skip to content

Commit

Permalink
Merge pull request #2694 from gravitl/NET-802
Browse files Browse the repository at this point in the history
NET-802: return user details form db
  • Loading branch information
abhishek9686 authored Nov 27, 2023
2 parents 0874618 + 81de838 commit 45398c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion logic/jwts.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func VerifyUserToken(tokenString string) (username string, issuperadmin, isadmin
}

if user.UserName != "" {
return claims.UserName, claims.IsSuperAdmin, claims.IsAdmin, nil
return user.UserName, user.IsSuperAdmin, user.IsAdmin, nil
}
err = errors.New("user does not exist")
}
Expand Down

0 comments on commit 45398c2

Please sign in to comment.