summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/Controller/ClientFlowLoginController.php2
-rw-r--r--core/js/login/authpicker.js7
2 files changed, 5 insertions, 4 deletions
diff --git a/core/Controller/ClientFlowLoginController.php b/core/Controller/ClientFlowLoginController.php
index ca9c092321a..8c2c121d5b2 100644
--- a/core/Controller/ClientFlowLoginController.php
+++ b/core/Controller/ClientFlowLoginController.php
@@ -232,7 +232,7 @@ class ClientFlowLoginController extends Controller {
IToken::DO_NOT_REMEMBER
);
- return new Http\RedirectResponse('nc://' . urlencode($loginName) . ':' . urlencode($token) . '@' . $this->request->getServerHost());
+ return new Http\RedirectResponse('nc://login/server:' . $this->request->getServerHost() . '&user:' . urlencode($loginName) . '&password:' . urlencode($token));
}
}
diff --git a/core/js/login/authpicker.js b/core/js/login/authpicker.js
index 666a63da365..2d4bcc33158 100644
--- a/core/js/login/authpicker.js
+++ b/core/js/login/authpicker.js
@@ -8,8 +8,9 @@ jQuery(document).ready(function() {
$('#submit-app-token-login').click(function(e) {
e.preventDefault();
- window.location.href = 'nc://'
- + encodeURIComponent($('#user').val()) + ':' + encodeURIComponent($('#password').val())
- + '@' + encodeURIComponent($('#serverHost').val());
+ window.location.href = 'nc://login/server:'
+ + encodeURIComponent($('#serverHost').val())
+ + "&user:" + encodeURIComponent($('#user').val())
+ + "&password:" + encodeURIComponent($('#password').val());
});
});