Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -42,7 +42,7 @@ def index():
|
|
| 42 |
return render_template("index.html")
|
| 43 |
|
| 44 |
@app.route("/app")
|
| 45 |
-
|
| 46 |
def interApp():
|
| 47 |
return "<h1>WIP</h1>"
|
| 48 |
|
|
@@ -54,6 +54,8 @@ def signup():
|
|
| 54 |
|
| 55 |
@app.route("/login")
|
| 56 |
def login():
|
|
|
|
|
|
|
| 57 |
return render_template("login.html")
|
| 58 |
|
| 59 |
|
|
|
|
| 42 |
return render_template("index.html")
|
| 43 |
|
| 44 |
@app.route("/app")
|
| 45 |
+
@authorized
|
| 46 |
def interApp():
|
| 47 |
return "<h1>WIP</h1>"
|
| 48 |
|
|
|
|
| 54 |
|
| 55 |
@app.route("/login")
|
| 56 |
def login():
|
| 57 |
+
if "username" in session and "password" in session:
|
| 58 |
+
return redirect(url_for("interApp"))
|
| 59 |
return render_template("login.html")
|
| 60 |
|
| 61 |
|