Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/user_saml.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2016-09-26 22:40:59 +0300
committerLukas Reschke <lukas@statuscode.ch>2016-09-26 23:07:57 +0300
commit547bc665b15e68dd56b22961863699ae72b656e0 (patch)
tree94981694663fb5e883572b3b3cfc902b3bff2a05 /js
parent57af6687daf80fa0349967f5c5e0e6f4dbfd4fb7 (diff)
Handle redirect in PHP and not in JS
Since Nextcloud 10 we have a proper login endpoint that we can match on
Diffstat (limited to 'js')
-rw-r--r--js/preauth.js4
1 files changed, 0 insertions, 4 deletions
diff --git a/js/preauth.js b/js/preauth.js
deleted file mode 100644
index 21f4bc28..00000000
--- a/js/preauth.js
+++ /dev/null
@@ -1,4 +0,0 @@
-if(typeof OC.Login !== "undefined") {
- // Redirect to login page
- window.location = OC.generateUrl('/apps/user_saml/saml/login')+'?requesttoken='+encodeURIComponent(OC.requestToken);
-}