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
d5bc54b8
"git@developer.sourcefind.cn:OpenDAS/nni.git" did not exist on "715b1899ed1a3caa29426a1c2e68a236bec87088"
Commit
d5bc54b8
authored
Dec 29, 2023
by
Timothy J. Baek
Browse files
fix: update password
parent
500f61b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
backend/apps/web/models/auths.py
backend/apps/web/models/auths.py
+2
-2
No files found.
backend/apps/web/models/auths.py
View file @
d5bc54b8
...
@@ -118,8 +118,8 @@ class AuthsTable:
...
@@ -118,8 +118,8 @@ class AuthsTable:
try
:
try
:
query
=
Auth
.
update
(
password
=
new_password
).
where
(
Auth
.
id
==
id
)
query
=
Auth
.
update
(
password
=
new_password
).
where
(
Auth
.
id
==
id
)
result
=
query
.
execute
()
result
=
query
.
execute
()
print
(
result
)
return
True
return
True
if
result
==
1
else
False
except
:
except
:
return
False
return
False
...
...
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