fdg
This commit is contained in:
parent
e0f1b405b5
commit
3393c46c91
|
|
@ -52,14 +52,41 @@ require_once 'Modele/Ouinon.php';
|
||||||
$nvmdp = $this->requete->getParametre("nvmdp");
|
$nvmdp = $this->requete->getParametre("nvmdp");
|
||||||
$cfnvmdp = $this->requete->getParametre("cfnvmdp");
|
$cfnvmdp = $this->requete->getParametre("cfnvmdp");
|
||||||
|
|
||||||
|
|
||||||
if ($nvmdp!=$cfnvmdp)
|
if ($nvmdp!=$cfnvmdp)
|
||||||
{
|
{
|
||||||
$this->genererVue(array('msgErreur' => 'Veuillez confirmer le nouveau mot de passe!'), "index");
|
$codeSociete = $_SESSION['codeSociete'];
|
||||||
|
$expressionsinactives = $this->societeuser->getcompsantepasswordactif("0");
|
||||||
|
|
||||||
|
$expressionsactives = $this->societeuser->getcompsantepasswordactif("1");
|
||||||
|
$societeuser = $this->societeuser->getVwSocieteuser($codeSociete);
|
||||||
|
|
||||||
|
$msgErreur = _('Veuillez confirmer le nouveau mot de passe!');
|
||||||
|
|
||||||
|
$this->genererVue(array(
|
||||||
|
'expressionsinactives' => $expressionsinactives,
|
||||||
|
'expressionsactives' => $expressionsactives ,
|
||||||
|
'activerOtpouinon' => $this->activerOtpouinon,
|
||||||
|
'societeuser' => $societeuser,
|
||||||
|
'msgErreur' => $msgErreur
|
||||||
|
));
|
||||||
}
|
}
|
||||||
else if ($nvmdp==$ancmdp)
|
else if ($nvmdp==$ancmdp)
|
||||||
{
|
{
|
||||||
$this->genererVue(array('msgErreur' => 'Veuillez changer le mot de passe!'), "index");
|
$codeSociete = $_SESSION['codeSociete'];
|
||||||
|
$expressionsinactives = $this->societeuser->getcompsantepasswordactif("0");
|
||||||
|
|
||||||
|
$expressionsactives = $this->societeuser->getcompsantepasswordactif("1");
|
||||||
|
$societeuser = $this->societeuser->getVwSocieteuser($codeSociete);
|
||||||
|
|
||||||
|
$msgErreur = _('Veuillez changer le mot de passe!');
|
||||||
|
|
||||||
|
$this->genererVue(array(
|
||||||
|
'expressionsinactives' => $expressionsinactives,
|
||||||
|
'expressionsactives' => $expressionsactives ,
|
||||||
|
'activerOtpouinon' => $this->activerOtpouinon,
|
||||||
|
'societeuser' => $societeuser,
|
||||||
|
'msgErreur' => $msgErreur
|
||||||
|
));
|
||||||
}
|
}
|
||||||
else if ($this->societeuser->verifiermotpass($codeSociete, $ancmdp))
|
else if ($this->societeuser->verifiermotpass($codeSociete, $ancmdp))
|
||||||
{
|
{
|
||||||
|
|
@ -67,13 +94,41 @@ require_once 'Modele/Ouinon.php';
|
||||||
$this->rediriger("Parametresgeneraux");
|
$this->rediriger("Parametresgeneraux");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$this->genererVue(array('msgErreur' => 'Ancien mot de passe incorrect!'), "index");
|
$codeSociete = $_SESSION['codeSociete'];
|
||||||
|
$expressionsinactives = $this->societeuser->getcompsantepasswordactif("0");
|
||||||
|
|
||||||
|
$expressionsactives = $this->societeuser->getcompsantepasswordactif("1");
|
||||||
|
$societeuser = $this->societeuser->getVwSocieteuser($codeSociete);
|
||||||
|
|
||||||
|
$msgErreur = _('Ancien mot de passe incorrect!');
|
||||||
|
|
||||||
|
$this->genererVue(array(
|
||||||
|
'expressionsinactives' => $expressionsinactives,
|
||||||
|
'expressionsactives' => $expressionsactives ,
|
||||||
|
'activerOtpouinon' => $this->activerOtpouinon,
|
||||||
|
'societeuser' => $societeuser,
|
||||||
|
'msgErreur' => $msgErreur
|
||||||
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$this->genererVue(array('msgErreur' => 'Veuillez revoir votre saisie!'), "index");
|
$codeSociete = $_SESSION['codeSociete'];
|
||||||
|
$expressionsinactives = $this->societeuser->getcompsantepasswordactif("0");
|
||||||
|
|
||||||
|
$expressionsactives = $this->societeuser->getcompsantepasswordactif("1");
|
||||||
|
$societeuser = $this->societeuser->getVwSocieteuser($codeSociete);
|
||||||
|
|
||||||
|
$msgErreur = _('Veuillez revoir votre saisie!');
|
||||||
|
|
||||||
|
$this->genererVue(array(
|
||||||
|
'expressionsinactives' => $expressionsinactives,
|
||||||
|
'expressionsactives' => $expressionsactives ,
|
||||||
|
'activerOtpouinon' => $this->activerOtpouinon,
|
||||||
|
'societeuser' => $societeuser,
|
||||||
|
'msgErreur' => $msgErreur
|
||||||
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user