Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(signin.tsx): set type of built-in email sign-in input to "email" and add "required" attribute for browser validation #4352

Merged
merged 8 commits into from Apr 15, 2022
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