Arcader7171 commited on
Commit
e6a8b1a
·
verified ·
1 Parent(s): fe9dcfa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -42,7 +42,7 @@ def index():
42
  return render_template("index.html")
43
 
44
  @app.route("/app")
45
- # @authorized
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