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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
claims, err := jwtManager.ValidateToken(tokenString)
|
claims, err := jwtManager.Validate(tokenString)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
errors.WriteError(w, errors.CodeUnauthenticated, "Unauthorized", http.StatusUnauthorized)
|
errors.WriteError(w, errors.CodeUnauthenticated, "Unauthorized", http.StatusUnauthorized)
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user