Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -76,7 +76,11 @@ async def login():
|
|
| 76 |
error = jwtPass[1]
|
| 77 |
return render_template("login.html", err=error)
|
| 78 |
return render_template("login.html", err=None)
|
| 79 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 80 |
|
| 81 |
|
| 82 |
@app.post("/api/signup")
|
|
|
|
| 76 |
error = jwtPass[1]
|
| 77 |
return render_template("login.html", err=error)
|
| 78 |
return render_template("login.html", err=None)
|
| 79 |
+
|
| 80 |
+
@app.route("/logout")
|
| 81 |
+
def logout():
|
| 82 |
+
wipeSession()
|
| 83 |
+
return redirect(url_for("login"))
|
| 84 |
|
| 85 |
|
| 86 |
@app.post("/api/signup")
|