Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Luciano Barletta
/
mini-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit 2fb27c0c
authored
2019-12-16 14:03:55 +0000
by
Luciano Barletta
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed bug when redirecting to login and back to a form
1 parent
a03c9de5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletions
app.py
static/Scripts/login.js
app.py
View file @
2fb27c0
...
...
@@ -27,6 +27,7 @@ def main():
@app.route
(
'/load/<name>'
,
methods
=
[
'POST'
])
def
load
(
name
):
import
ipdb
;
ipdb
.
set_trace
()
try
:
data
=
request
.
json
...
...
static/Scripts/login.js
View file @
2fb27c0
...
...
@@ -45,6 +45,6 @@ function validate(url){
function
redirect
(
url
){
cookie
=
new
CookieHandler
;
if
(
cookie
.
get
(
"login"
)
==
""
)
window
.
location
.
href
=
"/login
"
;
if
(
cookie
.
get
(
"login"
)
==
""
)
window
.
location
.
href
=
url
+
"/-
"
;
else
window
.
location
.
href
=
url
+
"/"
+
cookie
.
get
(
"login"
);
}
\ No newline at end of file
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment