aboutsummaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
Diffstat (limited to 'actions')
-rw-r--r--actions/openid_client/login.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/actions/openid_client/login.php b/actions/openid_client/login.php
index 604374ced..2a6896a61 100644
--- a/actions/openid_client/login.php
+++ b/actions/openid_client/login.php
@@ -6,6 +6,7 @@
elgg_load_library('openid_consumer');
$provider = get_input('openid_provider');
+$persistent = get_input('persistent', false);
if ($provider == 'others') {
$provider = get_input('openid_url');
@@ -13,7 +14,7 @@ if ($provider == 'others') {
$consumer = new ElggOpenIDConsumer($store);
$consumer->setURL($provider);
-$consumer->setReturnURL(elgg_get_site_url() . 'mod/openid_client/return.php');
+$consumer->setReturnURL(elgg_get_site_url() . "mod/openid_client/return.php?persistent=$persistent");
$html = $consumer->requestAuthentication();
if ($html) {