mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-15 21:41:05 -06:00
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:
@@ -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')}
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user