diff options
author | Fabian Helm <firlevapz@gmail.com> | 2020-02-25 21:40:19 +0100 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2020-07-04 07:01:52 +0000 |
commit | c5a408e0f7e9afb38dabeb8c9afc847d85fa5131 (patch) | |
tree | 3302a22ce361e8d8ef4504f883ababe66248d1e4 | |
parent | facace82343b97532f1ecea9908ba68c198701ad (diff) | |
download | nextcloud-server-c5a408e0f7e9afb38dabeb8c9afc847d85fa5131.tar.gz nextcloud-server-c5a408e0f7e9afb38dabeb8c9afc847d85fa5131.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>
-rw-r--r-- | core/templates/loginflow/authpicker.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/templates/loginflow/authpicker.php b/core/templates/loginflow/authpicker.php index 3a471525d80..3b12fbe2f07 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> |