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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -22,7 +22,6 @@ def jwtDecode(token):
22
  except jwt.exceptions.InvalidTokenError:
23
  return "bad", "Username/Password does not match"
24
 
25
- """
26
  def authorized(func):
27
  def wipe():
28
  session.pop("username", None)
@@ -35,7 +34,7 @@ def authorized(func):
35
  wipe()
36
  return redirect(url_for("login"))
37
  return func()
38
- return wrap() """
39
 
40
 
41
  @app.route("/")
 
22
  except jwt.exceptions.InvalidTokenError:
23
  return "bad", "Username/Password does not match"
24
 
 
25
  def authorized(func):
26
  def wipe():
27
  session.pop("username", None)
 
34
  wipe()
35
  return redirect(url_for("login"))
36
  return func()
37
+ return wrap()
38
 
39
 
40
  @app.route("/")