Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
nopaque
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SFB 1288 - INF
nopaque
Commits
423709b4
Commit
423709b4
authored
1 year ago
by
Patrick Jentsch
Browse files
Options
Downloads
Patches
Plain Diff
Add a prefix for nopaque's data within the application context
parent
a27caaa8
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/settings/routes.py
+2
-1
2 additions, 1 deletion
app/settings/routes.py
app/users/settings/routes.py
+1
-1
1 addition, 1 deletion
app/users/settings/routes.py
with
3 additions
and
2 deletions
app/settings/routes.py
+
2
−
1
View file @
423709b4
from
flask
import
url_for
from
flask
import
g
,
url_for
from
flask_breadcrumbs
import
register_breadcrumb
from
flask_login
import
current_user
from
app.users.settings.routes
import
settings
as
settings_route
...
...
@@ -8,4 +8,5 @@ from . import bp
@bp.route
(
'
/settings
'
,
methods
=
[
'
GET
'
,
'
POST
'
])
@register_breadcrumb
(
bp
,
'
.
'
,
'
<i class=
"
material-icons left
"
>settings</i>Settings
'
)
def
settings
():
g
.
_nopaque_redirect_location_on_post
=
url_for
(
'
.settings
'
)
return
settings_route
(
current_user
.
id
)
This diff is collapsed.
Click to expand it.
app/users/settings/routes.py
+
1
−
1
View file @
423709b4
...
...
@@ -23,7 +23,7 @@ def settings(user_id):
abort
(
403
)
redirect_location_on_post
=
g
.
pop
(
'
redirect_location_on_post
'
,
'
_nopaque_
redirect_location_on_post
'
,
url_for
(
'
.settings
'
,
user_id
=
user_id
)
)
...
...
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