feat: allow non-ASCII characters in email addresses (#33693)

Email addresses with non-ASCII characters before the @ (internationalized addresses per RFC 6531) were blocked by the browser's own email field check, so the admin account and new users could not be created with them. The email fields on the sign-up page and in the add and edit user dialogs now accept them and still show the email keyboard on mobile. The server already accepted these addresses, so no backend change is needed.

Fixes #33681
This commit is contained in:
Classic298
2026-11-04 05:35:24 +09:00
committed by GitHub
parent 5232f9bb24
commit 3bc0ca1cb5
3 changed files with 6 additions and 3 deletions
@@ -232,7 +232,8 @@
<div class="flex-1">
<input
class="w-full text-sm bg-transparent disabled:text-gray-500 dark:disabled:text-gray-500 outline-hidden"
type="email"
type="text"
inputmode="email"
bind:value={_user.email}
aria-label={$i18n.t('Email')}
placeholder={$i18n.t('Enter Your Email')}
@@ -240,7 +240,8 @@
<div class="flex-1">
<input
class="w-full text-sm bg-transparent disabled:text-gray-500 dark:disabled:text-gray-500 outline-hidden"
type="email"
type="text"
inputmode="email"
bind:value={_user.email}
aria-label={$i18n.t('Email')}
placeholder={$i18n.t('Enter Your Email')}
+2 -1
View File
@@ -388,7 +388,8 @@
>
<input
bind:value={email}
type="email"
type="text"
inputmode="email"
id="email"
class="my-0.5 w-full text-[0.8125rem] leading-5 outline-hidden bg-transparent placeholder:text-gray-300 dark:placeholder:text-gray-600"
autocomplete="email"