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
戒酒的李白
2024-07-03 21:41:44 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1b19855915dfb218e6c299c4acc5ca24a394d754
1b198559
1 parent
d67cc6c4
【user.py】登录控制器修改
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
views/user/user.py
views/user/user.py
View file @
1b19855
...
...
@@ -14,7 +14,7 @@ ub = Blueprint('user',
@ub.route
(
'/login'
,
methods
=
[
'GET'
,
'POST'
])
def
login
():
if
request
.
method
==
'GET'
:
return
render_template
(
'login.html'
)
return
render_template
(
'login
_and_register
.html'
)
else
:
def
filter_fn
(
user
):
...
...
@@ -34,7 +34,7 @@ def login():
@ub.route
(
'/register'
,
methods
=
[
'GET'
,
'POST'
])
def
register
():
if
request
.
method
==
'GET'
:
return
render_template
(
'register.html'
)
return
render_template
(
'
login_and_
register.html'
)
else
:
def
filter_fn
(
user
):
...
...
Please
register
or
login
to post a comment