summaryrefslogtreecommitdiff
path: root/src/application/actions/auth/_common.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/application/actions/auth/_common.php')
-rw-r--r--src/application/actions/auth/_common.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/application/actions/auth/_common.php b/src/application/actions/auth/_common.php
new file mode 100644
index 0000000..2b8911a
--- /dev/null
+++ b/src/application/actions/auth/_common.php
@@ -0,0 +1,6 @@
+<?php
+
+if ($currentUser) {
+ header("Location: " . ($_GET["next"] ?? "."));
+ exit;
+}