summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérôme Schneider <jschneider@entrouvert.com>2015-05-11 16:17:41 (GMT)
committerJérôme Schneider <jschneider@entrouvert.com>2015-05-11 16:17:41 (GMT)
commitd82fa0f4ca670ecbc19ab8027bc7dc4406b04458 (patch)
tree4701e5b5e66705a2256046972d002badae1c3421
parent15dadb785622622db6d8d57684770b138f438204 (diff)
downloadspip-saml-d82fa0f4ca670ecbc19ab8027bc7dc4406b04458.zip
spip-saml-d82fa0f4ca670ecbc19ab8027bc7dc4406b04458.tar.gz
spip-saml-d82fa0f4ca670ecbc19ab8027bc7dc4406b04458.tar.bz2
login_saml.php: disable auto redirect to /ecrire
-rw-r--r--balise/login_saml.php9
1 files changed, 3 insertions, 6 deletions
diff --git a/balise/login_saml.php b/balise/login_saml.php
index db14b52..3d3b854 100644
--- a/balise/login_saml.php
+++ b/balise/login_saml.php
@@ -116,12 +116,9 @@ function login_saml_successfull()
$session = charger_fonction('session', 'inc');
$cookie_session = $session($row_auteur);
spip_setcookie('spip_session', $cookie_session);
- if (($row_auteur['statut'][0] < 6) and ($row_auteur['statut'] != '0'))
- $redirect = _DIR_RESTREINT_ABS. "?bonjour=oui";
- else
- $redirect = '/';
- spip_log('[auth_saml] redirect ' . $redirect);
- redirige_par_entete($redirect);
+ $next_url = $_GET['url'];
+ spip_log('[auth_saml] redirect ' . $next_url);
+ redirige_par_entete($next_url);
}
?>