Skip to content

Commit

Permalink
(NOBIDS) use password-reset-not-allowed error
Browse files Browse the repository at this point in the history
  • Loading branch information
guybrush committed Mar 11, 2024
1 parent 5fd8756 commit f39f0c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handlers/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,7 @@ func sendPasswordResetEmail(email string) error {
return fmt.Errorf("error getting password_reset_not_allowed: %w", err)
}
if passwordResetNotAllowed {
return fmt.Errorf("password-reset not allowed for user: %v", email)
return &types.PasswordResetNotAllowedError{}
}

var lastTs *time.Time
Expand Down

0 comments on commit f39f0c5

Please sign in to comment.