X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=www%2Fecrire%2Faction%2Fauth.php;h=e7dceb40286be999124aee7fd0b7ac434fb592a4;hb=58abc0c37c66f23ea340ce4107246c868a2d5402;hp=ebf6ec68378e25b7033ea720fbf5b715629449b5;hpb=9bbff73a71a636a626a1be365cbf48c07f1f7220;p=lhc%2Fweb%2Fwww.git diff --git a/www/ecrire/action/auth.php b/www/ecrire/action/auth.php old mode 100644 new mode 100755 index ebf6ec68..e7dceb40 --- a/www/ecrire/action/auth.php +++ b/www/ecrire/action/auth.php @@ -3,35 +3,42 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2016 * + * Copyright (c) 2001-2019 * * Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James * * * * Ce programme est un logiciel libre distribue sous licence GNU/GPL. * * Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne. * \***************************************************************************/ -if (!defined('_ECRIRE_INC_VERSION')) return; +/** + * Gestion de l'action auth + * + * @package SPIP\Core\Authentification + **/ + +if (!defined('_ECRIRE_INC_VERSION')) { + return; +} /** * Retour d'authentification pour les SSO */ function action_auth_dist() { - + $securiser_action = charger_fonction('securiser_action', 'inc'); $arg = $securiser_action(); if (!preg_match(",^(\w+)[/](.+)$,", $arg, $r)) { spip_log("action_auth_dist $arg pas compris"); - } - else { + } else { $auth_methode = $r[1]; $login = $r[2]; include_spip('inc/auth'); $res = auth_terminer_identifier_login($auth_methode, $login); - if (is_string($res)){ // Erreur + if (is_string($res)) { // Erreur $redirect = _request('redirect'); - $redirect = parametre_url($redirect,'var_erreur',$res,'&'); + $redirect = parametre_url($redirect, 'var_erreur', $res, '&'); include_spip('inc/headers'); redirige_par_entete($redirect); } @@ -40,6 +47,3 @@ function action_auth_dist() { auth_loger($res); } } - - -?>