Skip to content

Commit

Permalink
feat: return the user on log in even if they are not active (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammedamarnah authored Apr 27, 2024
1 parent 34a0165 commit dcf93d8
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions services/user_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,6 @@ func (service Service) LoginInternal(ctx context.Context, email string, password
if err := query.QueryContext(ctx, db, &verify_user); err != nil {
return gmodel.Auth{}, fmt.Errorf("incorrect email or password")
}
if !verify_user.Active {
return gmodel.Auth{}, fmt.Errorf("please verify your email")
}
if verify_user.Password == nil {
return gmodel.Auth{}, fmt.Errorf("password has not been set for this account. try a different authentication method")
}
Expand Down

0 comments on commit dcf93d8

Please sign in to comment.