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
1bb27242
Commit
1bb27242
authored
Jul 07, 2024
by
Peter De-Ath
Browse files
fix password update in AuthsTable model
parent
f971ba0c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
backend/apps/webui/models/auths.py
backend/apps/webui/models/auths.py
+1
-0
No files found.
backend/apps/webui/models/auths.py
View file @
1bb27242
...
@@ -173,6 +173,7 @@ class AuthsTable:
...
@@ -173,6 +173,7 @@ class AuthsTable:
result
=
(
result
=
(
db
.
query
(
Auth
).
filter_by
(
id
=
id
).
update
({
"password"
:
new_password
})
db
.
query
(
Auth
).
filter_by
(
id
=
id
).
update
({
"password"
:
new_password
})
)
)
db
.
commit
()
return
True
if
result
==
1
else
False
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