auth* : the details can be provided in all the cases : if the user is authenticated, at least, return the email
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3019 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
@@ -35,7 +35,7 @@ class authsympa extends auth
|
||||
/** Temporary auth key used betwwen commands */
|
||||
private $authkey = null;
|
||||
/** Email of the user if the authentication is correct */
|
||||
private $email = null;
|
||||
private $details = null;
|
||||
|
||||
/** Check if the SOAP module is available in PHP */
|
||||
public function __construct ()
|
||||
@@ -70,19 +70,18 @@ class authsympa extends auth
|
||||
throw new Exception (dgettext("domframework",
|
||||
"Can't connect with provided email/password to sympa"),
|
||||
401);
|
||||
$this->email = $email;
|
||||
$rc = $this->client->authenticateAndRun ($email, $this->authkey,
|
||||
'amI', array ($this->list, $this->function, $email));
|
||||
if ($rc === null)
|
||||
return FALSE;
|
||||
$this->details = array ("email"=>$email);
|
||||
return $rc;
|
||||
}
|
||||
|
||||
/** Return all the parameters recorded for the authenticate user */
|
||||
public function getdetails ()
|
||||
{
|
||||
throw new Exception (dgettext("domframework",
|
||||
"The details can't be provided by Sympa"), 404);
|
||||
return $this->details;
|
||||
}
|
||||
|
||||
/** Method to change the password
|
||||
|
||||
Reference in New Issue
Block a user