]> source.dussan.org Git - nextcloud-server.git/commitdiff
Change OAuth2 redirect link to relative link 19646/head
authorFabian Helm <firlevapz@gmail.com>
Tue, 25 Feb 2020 20:40:19 +0000 (21:40 +0100)
committerFabian Helm <firlevapz@gmail.com>
Tue, 25 Feb 2020 20:51:58 +0000 (21:51 +0100)
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>
core/templates/loginflow/authpicker.php

index 890e0b186d9d87da915d4e739d06d67354a79388..f3a62eece7b2a5c17d56792e50d8308f59a532fa 100644 (file)
@@ -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>