"vscode:/vscode.git/clone" did not exist on "31f8913a1e9a5755c5b5a9d07a7342811ef434e2"
Unverified Commit f752ba64 authored by Timothy Jaeryang Baek's avatar Timothy Jaeryang Baek Committed by GitHub
Browse files

Merge pull request #297 from ollama-webui/auth-fix

fix: save auth email as lowercase
parents ed327ed7 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})
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment