Merge pull request #1386 from dannyl1u/feat/profile-image-initials

feat: default profile image with user initials
This commit is contained in:
Timothy Jaeryang Baek 2024-04-06 23:59:20 -07:00 committed by GitHub
commit 02d3fb427b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 248 additions and 27 deletions

View file

@ -58,7 +58,12 @@ export const userSignIn = async (email: string, password: string) => {
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;
const res = await fetch(`${WEBUI_API_BASE_URL}/auths/signup`, {
@ -69,7 +74,8 @@ export const userSignUp = async (name: string, email: string, password: string)
body: JSON.stringify({
name: name,
email: email,
password: password
password: password,
profile_image_url: profile_image_url
})
})
.then(async (res) => {