aboutsummaryrefslogtreecommitdiff
path: root/app/session/login
diff options
context:
space:
mode:
Diffstat (limited to 'app/session/login')
-rw-r--r--app/session/login/embed/index.php6
-rw-r--r--app/session/login/index.php7
2 files changed, 0 insertions, 13 deletions
diff --git a/app/session/login/embed/index.php b/app/session/login/embed/index.php
deleted file mode 100644
index 8ea9020..0000000
--- a/app/session/login/embed/index.php
+++ /dev/null
@@ -1,6 +0,0 @@
-<?php
-
-$_CONFIG = json_decode(file_get_contents("/mnt/familine/private/FamilineConfig.json"), true);
-
-header("Location: https://" . $_CONFIG["Global"]["federation"] . "/hub/api/rest/oauth2/auth?client_id=" . json_decode(file_get_contents("/mnt/familine/private/app.json"), true)["id"] . "&response_type=code&redirect_uri=https://session." . $_CONFIG["Global"]["domain"] . "/oauth/embed&scope=Hub&request_credentials=default&access_type=offline");
-die();
diff --git a/app/session/login/index.php b/app/session/login/index.php
deleted file mode 100644
index 0e607d1..0000000
--- a/app/session/login/index.php
+++ /dev/null
@@ -1,7 +0,0 @@
-<?php
-
-$_CONFIG = json_decode(file_get_contents("/mnt/familine/private/FamilineConfig.json"), true);
-setcookie("_auth_callback", $_GET['r'], 0, "/");
-
-header("Location: https://" . $_CONFIG["Global"]["federation"] . "/hub/api/rest/oauth2/auth?client_id=" . json_decode(file_get_contents("/mnt/familine/private/app.json"), true)["id"] . "&response_type=code&redirect_uri=https://session." . $_CONFIG["Global"]["domain"] . "/oauth&scope=Hub&request_credentials=default&access_type=offline");
-die();