From d00123ceff66ab392a4aa55ffeb1a6faf8e3738a Mon Sep 17 00:00:00 2001 From: rav4s Date: Fri, 18 Dec 2020 11:08:58 -0600 Subject: [PATCH] Added redirect to logout function --- garage_door_script.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/garage_door_script.py b/garage_door_script.py index 62b7ba8..128245c 100644 --- a/garage_door_script.py +++ b/garage_door_script.py @@ -74,7 +74,7 @@ def cookie(): # Route for the logout page @app.route('/logout') def logout(): - resp = make_response('/login') + resp = make_response(redirect('/login')) resp.set_cookie('logged_in', expires=0) return resp