summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--index.php4
-rw-r--r--pages/login.php4
-rw-r--r--pages/logintoken.php0
3 files changed, 8 insertions, 0 deletions
diff --git a/index.php b/index.php
index a58f8ae..4d7e170 100644
--- a/index.php
+++ b/index.php
@@ -122,6 +122,10 @@ switch ($request) {
case "m":
require("pages/mobile.php");
+ break;
+
+ case "token":
+ require("pages/logintoken.php");
break;
case "h":
diff --git a/pages/login.php b/pages/login.php
index e9bc13a..4858e57 100644
--- a/pages/login.php
+++ b/pages/login.php
@@ -1,5 +1,9 @@
<?php
if ($accepted) {
+ if ($_GET['mobile'] == 'true') {
+ header("Location: $mydomain"."easytoken");
+ exit;
+ }
header("Location: $mydomain");
exit;
}
diff --git a/pages/logintoken.php b/pages/logintoken.php
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/pages/logintoken.php