Skip to content

Commit

Permalink
fix: forgot password
Browse files Browse the repository at this point in the history
  • Loading branch information
lakhansamani committed Dec 21, 2023
1 parent 123f7f9 commit 8f93173
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/AuthorizerForgotPassword.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ export const AuthorizerForgotPassword: FC<{
email_or_phone_number: 'Email OR Phone Number is required',
});
} else if (
formData.email_or_phone_number !== '' &&
!isEmail(formData.email_or_phone_number || '') &&
!isMobilePhone(formData.email_or_phone_number || '')
) {
Expand Down Expand Up @@ -157,17 +158,17 @@ export const AuthorizerForgotPassword: FC<{
className={styles['form-input-label']}
htmlFor="authorizer-forgot-password-email-or-phone-number"
>
<span>* </span>Email
<span>* </span>Email / Phone Number
</label>
<input
name="email_or_phone_number"
id="authorizer-forgot-password-email-or-"
id="authorizer-forgot-password-email-or-phone-number"
className={`${styles['form-input-field']} ${
errorData.email_or_phone_number
? styles['input-error-content']
: null
}`}
placeholder="eg. foo@bar.com"
placeholder="eg. hello@world.com / +919999999999"
type="text"
value={formData.email_or_phone_number || ''}
onChange={(e) =>
Expand Down

0 comments on commit 8f93173

Please sign in to comment.