Update
This commit is contained in:
@@ -51,9 +51,9 @@ func (u *AuthServiceImpl) AuthenticateUser(ctx context.Context, email, password
|
||||
return nil, errors.ErrorUserIsNotFound
|
||||
}
|
||||
|
||||
//if ok := u.crypto.CompareHashAndPassword(user.Password, password); !ok {
|
||||
// //return nil, errors.ErrorUserInvalidLogin
|
||||
//}
|
||||
if ok := u.crypto.CompareHashAndPassword(user.Password, password); !ok {
|
||||
return nil, errors.ErrorUserInvalidLogin
|
||||
}
|
||||
|
||||
signedToken, err := u.crypto.GenerateJWT(user.ToUser())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user