예제 #1
0
 public function setPassword($value)
 {
     if (Val::requerido($value)) {
         $this->password = $value;
     } else {
         $this->Util()->setError(0, 'error', 'Contraseña :: Campo requerido');
     }
 }
예제 #2
0
 public function setRepetirPassword($value, $passwd)
 {
     if (Val::requerido($value)) {
         if ($value != $passwd) {
             $this->Util()->setError(0, 'error', 'Las contraseñas no coinciden.');
         }
         $this->repetirPassword = $value;
     } else {
         $this->Util()->setError(0, 'error', 'Has olvidado confirmar la contraseña.');
     }
 }