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-02 17:10:50 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7f5d2a0858984f07b85452be24231c1148d0d97b
7f5d2a08
1 parent
30e9c5ac
【user.py】添加登出接口
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
views/user/user.py
views/user/user.py
View file @
7f5d2a0
...
...
@@ -40,4 +40,9 @@ def register():
insert into user(username,password,createTime) values(
%
s,
%
s,
%
s)
'''
,[
request
.
form
[
'username'
],
request
.
form
[
'password'
],
str
(
time_tuple
[
0
])
+
'-'
+
str
(
time_tuple
[
1
])
+
'-'
+
str
(
time_tuple
[
2
])])
return
redirect
(
'/user/login'
)
@ub.route
(
'/logOut'
)
def
logOut
():
session
.
clear
()
return
redirect
(
'/user/login'
)
\ No newline at end of file
...
...
Please
register
or
login
to post a comment