Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
4195af49
Commit
4195af49
authored
Apr 04, 2024
by
Danny Liu
Browse files
pass generated profile image in signup api call
parent
3b06096c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/lib/apis/auths/index.ts
src/lib/apis/auths/index.ts
+3
-2
No files found.
src/lib/apis/auths/index.ts
View file @
4195af49
...
@@ -58,7 +58,7 @@ export const userSignIn = async (email: string, password: string) => {
...
@@ -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)
...
@@ -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
)
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment