aboutsummaryrefslogtreecommitdiffstats
path: root/pysite/views/main/auth/done.py
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2018-08-07 15:09:08 +0100
committerGravatar Gareth Coles <[email protected]>2018-08-07 15:09:16 +0100
commitaf54db6c136138c66cf5ca72419989525a0baa5c (patch)
tree8519aeab8d45277c51797c7dc23aacf3b56ed1bb /pysite/views/main/auth/done.py
parentA wizard is never late, nor is he early. (diff)
Initial project layout for django
Diffstat (limited to 'pysite/views/main/auth/done.py')
-rw-r--r--pysite/views/main/auth/done.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/pysite/views/main/auth/done.py b/pysite/views/main/auth/done.py
deleted file mode 100644
index 6e892906..00000000
--- a/pysite/views/main/auth/done.py
+++ /dev/null
@@ -1,18 +0,0 @@
-from flask import redirect, session, url_for
-
-from pysite.base_route import RouteView
-
-
-class AuthDoneView(RouteView):
- path = "/auth/done"
- name = "auth.done"
-
- def get(self):
- if self.logged_in:
- target = session.get("redirect_target")
-
- if target:
- del session["redirect_target"]
- return redirect(url_for(target["url"], **target.get("kwargs", {})))
-
- return redirect(url_for("main.index"))