Skip to content

Commit

Permalink
fix(signin): set email sign-in input to "email" & "required"(#4352)
Browse files Browse the repository at this point in the history
* fix(core\pages\signin.tsx): set type of built-in email sign-in input to email for browse validation
* fix(core\pages\signin.tsx): add required attribute to built-in sign-in email input

Co-authored-by: Lluis Agusti <hi@llu.lu>
  • Loading branch information
raulmarindev and ubbe-xyz committed Apr 15, 2022
1 parent 59daa0e commit fd755bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/next-auth/src/core/pages/signin.tsx
Expand Up @@ -123,10 +123,11 @@ export default function SigninPage(props: SignInServerPageParams) {
<input
id={`input-email-for-${provider.id}-provider`}
autoFocus
type="text"
type="email"
name="email"
value={email}
placeholder="email@example.com"
required
/>
<button type="submit">Sign in with {provider.name}</button>
</form>
Expand Down

0 comments on commit fd755bc

Please sign in to comment.