forked from open-webui/open-webui
		
	pass generated profile image in signup api call
This commit is contained in:
		
							parent
							
								
									3b06096c52
								
							
						
					
					
						commit
						4195af4942
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		|  | @ -58,7 +58,7 @@ export const userSignIn = async (email: string, password: string) => { | ||||||
| 	return res; | 	return res; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| export const userSignUp = async (name: string, email: string, password: string) => { | export const userSignUp = async (name: string, email: string, password: string, profile_image_url: string) => { | ||||||
| 	let error = null; | 	let error = null; | ||||||
| 
 | 
 | ||||||
| 	const res = await fetch(`${WEBUI_API_BASE_URL}/auths/signup`, { | 	const res = await fetch(`${WEBUI_API_BASE_URL}/auths/signup`, { | ||||||
|  | @ -69,7 +69,8 @@ export const userSignUp = async (name: string, email: string, password: string) | ||||||
| 		body: JSON.stringify({ | 		body: JSON.stringify({ | ||||||
| 			name: name, | 			name: name, | ||||||
| 			email: email, | 			email: email, | ||||||
| 			password: password | 			password: password, | ||||||
|  | 			profile_image_url: profile_image_url | ||||||
| 		}) | 		}) | ||||||
| 	}) | 	}) | ||||||
| 		.then(async (res) => { | 		.then(async (res) => { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Danny Liu
						Danny Liu