summaryrefslogtreecommitdiffstats
path: root/core/templates
diff options
context:
space:
mode:
authorFabian Helm <firlevapz@gmail.com>2020-02-25 21:40:19 +0100
committerFabian Helm <firlevapz@gmail.com>2020-02-25 21:51:58 +0100
commit5b1bb3703a69df90e85a5304e9a8ef69f3c12bd5 (patch)
treecaf3034aa2c82cf00f4ec1482ecc1c67e2e8f30a /core/templates
parent2ebf88a98c5eda6f120d8c70088aeccb59497c11 (diff)
downloadnextcloud-server-5b1bb3703a69df90e85a5304e9a8ef69f3c12bd5.tar.gz
nextcloud-server-5b1bb3703a69df90e85a5304e9a8ef69f3c12bd5.zip
Change OAuth2 redirect link to relative link
fix issue with third-party apps like rocket.chat where browser in external window is opened and thus oauth2 login does not work Signed-off-by: Fabian Helm <firlevapz@gmail.com>
Diffstat (limited to 'core/templates')
-rw-r--r--core/templates/loginflow/authpicker.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/templates/loginflow/authpicker.php b/core/templates/loginflow/authpicker.php
index 890e0b186d9..f3a62eece7b 100644
--- a/core/templates/loginflow/authpicker.php
+++ b/core/templates/loginflow/authpicker.php
@@ -39,7 +39,7 @@ $urlGenerator = $_['urlGenerator'];
<br/>
<p id="redirect-link">
- <a href="<?php p($urlGenerator->linkToRouteAbsolute('core.ClientFlowLogin.grantPage', ['stateToken' => $_['stateToken'], 'clientIdentifier' => $_['clientIdentifier'], 'oauthState' => $_['oauthState']])) ?>">
+ <a href="<?php p($urlGenerator->linkToRoute('core.ClientFlowLogin.grantPage', ['stateToken' => $_['stateToken'], 'clientIdentifier' => $_['clientIdentifier'], 'oauthState' => $_['oauthState']])) ?>">
<input type="submit" class="login primary icon-confirm-white" value="<?php p($l->t('Log in')) ?>">
</a>
</p>