Suppression du message dans le die de l'auth
This commit is contained in:
parent
391cf3f3fe
commit
3da6c0f474
@ -78,12 +78,14 @@ $user = new User($db);
|
|||||||
//XAVIER DUTOIT 18/09/2003 : si l'utilisateur n'est pas authentifié apache, on essaie pear Auth
|
//XAVIER DUTOIT 18/09/2003 : si l'utilisateur n'est pas authentifié apache, on essaie pear Auth
|
||||||
|
|
||||||
if (!empty ($GLOBALS["REMOTE_USER"]))
|
if (!empty ($GLOBALS["REMOTE_USER"]))
|
||||||
$user->fetch($GLOBALS["REMOTE_USER"]);
|
{
|
||||||
else
|
$user->fetch($GLOBALS["REMOTE_USER"]);
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
require_once "Auth/Auth.php";
|
require_once "Auth/Auth.php";
|
||||||
$params = array(
|
$params = array(
|
||||||
"dsn" => $conf->db->getdsn (),
|
"dsn" => $conf->db->getdsn(),
|
||||||
"table" => "llx_user",
|
"table" => "llx_user",
|
||||||
"usernamecol" => "login",
|
"usernamecol" => "login",
|
||||||
"passwordcol" => "pass",
|
"passwordcol" => "pass",
|
||||||
@ -91,11 +93,14 @@ if (!empty ($GLOBALS["REMOTE_USER"]))
|
|||||||
);
|
);
|
||||||
$a = new Auth("DB", $params, "loginFunction");
|
$a = new Auth("DB", $params, "loginFunction");
|
||||||
$a->start();
|
$a->start();
|
||||||
if ($a->getAuth()) {
|
if ($a->getAuth())
|
||||||
$user->fetch($a->getUsername());
|
{
|
||||||
}
|
$user->fetch($a->getUsername());
|
||||||
|
}
|
||||||
else
|
else
|
||||||
die ("Veuillez vous authentifier");
|
{
|
||||||
|
die ;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
* Definition de toutes les Constantes globales d'envirronement
|
* Definition de toutes les Constantes globales d'envirronement
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user