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
f267f3f7
Commit
f267f3f7
authored
Apr 06, 2024
by
Timothy J. Baek
Browse files
refac
parent
663b5ada
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
15 deletions
+3
-15
backend/apps/web/models/auths.py
backend/apps/web/models/auths.py
+2
-2
backend/apps/web/models/users.py
backend/apps/web/models/users.py
+1
-1
src/routes/auth/+page.svelte
src/routes/auth/+page.svelte
+0
-12
No files found.
backend/apps/web/models/auths.py
View file @
f267f3f7
...
...
@@ -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"
)
...
...
backend/apps/web/models/users.py
View file @
f267f3f7
...
...
@@ -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
(
...
...
src/routes/auth/+page.svelte
View file @
f267f3f7
...
...
@@ -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);
};
...
...
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