Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
c31ff1f6
Commit
c31ff1f6
authored
Dec 27, 2023
by
Timothy J. Baek
Browse files
fix: save email as lowercase
parent
ed327ed7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
backend/apps/web/routers/auths.py
backend/apps/web/routers/auths.py
+3
-1
No files found.
backend/apps/web/routers/auths.py
View file @
c31ff1f6
...
...
@@ -88,7 +88,9 @@ async def signup(form_data: SignupForm):
try
:
role
=
"admin"
if
Users
.
get_num_users
()
==
0
else
"pending"
hashed
=
get_password_hash
(
form_data
.
password
)
user
=
Auths
.
insert_new_auth
(
form_data
.
email
,
hashed
,
form_data
.
name
,
role
)
user
=
Auths
.
insert_new_auth
(
form_data
.
email
.
lower
(),
hashed
,
form_data
.
name
,
role
)
if
user
:
token
=
create_token
(
data
=
{
"email"
:
user
.
email
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment