forked from open-webui/open-webui
		
	Merge pull request #297 from ollama-webui/auth-fix
fix: save auth email as lowercase
This commit is contained in:
		
						commit
						f752ba6474
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		|  | @ -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}) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Timothy Jaeryang Baek
						Timothy Jaeryang Baek