Skip to content

Commit fd755bc

Browse files
raulmarindev0ubbe
andauthoredApr 15, 2022
fix(signin): set email sign-in input to "email" & "required"(#4352)
* 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>
1 parent 59daa0e commit fd755bc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎packages/next-auth/src/core/pages/signin.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,11 @@ export default function SigninPage(props: SignInServerPageParams) {
123123
<input
124124
id={`input-email-for-${provider.id}-provider`}
125125
autoFocus
126-
type="text"
126+
type="email"
127127
name="email"
128128
value={email}
129129
placeholder="email@example.com"
130+
required
130131
/>
131132
<button type="submit">Sign in with {provider.name}</button>
132133
</form>

0 commit comments

Comments
 (0)
Please sign in to comment.