Toggle navigation
Toggle navigation
This project
Loading...
Sign in
万朱浩
/
Venue-Ops
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
kpt
2024-07-03 18:42:41 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3acbb1e0fe44928a20e3311a747d8f2f72f873a4
3acbb1e0
1 parent
86533a51
【user.py】修复了密码值返回的是函数的 Bug
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
views/user/user.py
views/user/user.py
View file @
3acbb1e
...
...
@@ -21,7 +21,7 @@ def login():
hash_with_salt
=
hashlib
.
sha256
(
'XiaoXueQi2024'
.
encode
(
'utf-8'
))
hash_with_salt
.
update
(
request
.
form
[
'password'
]
.
encode
(
'utf-8'
))
return
request
.
form
[
'username'
]
in
user
and
hash_with_salt
.
hexdigest
in
user
'username'
]
in
user
and
hash_with_salt
.
hexdigest
()
in
user
users
=
query
(
'select * from user'
,
[],
'select'
)
login_success
=
list
(
filter
(
filter_fn
,
users
))
...
...
Please
register
or
login
to post a comment