Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Roadmap
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Robert Goldmann
Roadmap
Commits
72409fc2
Commit
72409fc2
authored
Jul 27, 2019
by
Robert Goldmann
Browse files
Options
Downloads
Patches
Plain Diff
#24
- logout route
parent
ff9162d0
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
client/RoadmapClient.py
+7
-1
7 additions, 1 deletion
client/RoadmapClient.py
with
7 additions
and
1 deletion
client/RoadmapClient.py
+
7
−
1
View file @
72409fc2
...
...
@@ -88,11 +88,17 @@ def loginPost():
if
response
.
status_code
==
200
:
token
=
response
.
json
()[
"
access_token
"
]
session
[
'
session_token
'
]
=
token
return
render_template
(
'
overview.html
'
)
# TODO
return
render_template
(
'
admin/admin-roadmaps.html
'
)
return
render_template
(
'
error.html
'
,
message
=
response
.
json
()[
"
msg
"
])
@app.route
(
'
/admin/logout
'
)
def
logout
():
del
session
[
'
session_token
'
]
return
redirect
(
'
/
'
)
@app.route
(
'
/admin/edit
'
)
@require_api_token
def
edit
():
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment