forked from open-webui/open-webui
		
	refac
This commit is contained in:
		
							parent
							
								
									663b5adaf2
								
							
						
					
					
						commit
						f267f3f7b0
					
				
					 3 changed files with 3 additions and 15 deletions
				
			
		|  | @ -82,7 +82,7 @@ class SignupForm(BaseModel): | |||
|     name: str | ||||
|     email: str | ||||
|     password: str | ||||
|     profile_image_url: str | ||||
|     profile_image_url: Optional[str] = "/user.png" | ||||
| 
 | ||||
| 
 | ||||
| class AuthsTable: | ||||
|  | @ -95,7 +95,7 @@ class AuthsTable: | |||
|         email: str, | ||||
|         password: str, | ||||
|         name: str, | ||||
|         profile_image_url: str, | ||||
|         profile_image_url: str = "/user.png", | ||||
|         role: str = "pending", | ||||
|     ) -> Optional[UserModel]: | ||||
|         log.info("insert_new_auth") | ||||
|  |  | |||
|  | @ -61,7 +61,7 @@ class UsersTable: | |||
|         id: str, | ||||
|         name: str, | ||||
|         email: str, | ||||
|         profile_image_url: str, | ||||
|         profile_image_url: str = "/user.png", | ||||
|         role: str = "pending", | ||||
|     ) -> Optional[UserModel]: | ||||
|         user = UserModel( | ||||
|  |  | |||
|  | @ -43,18 +43,6 @@ | |||
| 			} | ||||
| 		); | ||||
| 
 | ||||
| 		if (!canvasPixelTest()) { | ||||
| 			toast.info( | ||||
| 				$i18n.t( | ||||
| 					'Fingerprint spoofing detected: default profile picture set. Disable to access Initial avatar!' | ||||
| 				), | ||||
| 				{ | ||||
| 					position: 'bottom-center', | ||||
| 					duration: 1000 * 10 | ||||
| 				} | ||||
| 			); | ||||
| 		} | ||||
| 
 | ||||
| 		await setSessionUser(sessionUser); | ||||
| 	}; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Timothy J. Baek
						Timothy J. Baek