Fix JWT validation method name
This commit is contained in:
@@ -4087,7 +4087,7 @@ func getUserAvatarHandler(w http.ResponseWriter, r *http.Request, db *database.D
|
||||
return
|
||||
}
|
||||
|
||||
claims, err := jwtManager.ValidateToken(tokenString)
|
||||
claims, err := jwtManager.Validate(tokenString)
|
||||
if err != nil {
|
||||
errors.WriteError(w, errors.CodeUnauthenticated, "Unauthorized", http.StatusUnauthorized)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user