diff --git a/www/protected/components/IdentificacionUsuario.php b/www/protected/components/IdentificacionUsuario.php
index 8e2e2ef..2d4fd06 100644
--- a/www/protected/components/IdentificacionUsuario.php
+++ b/www/protected/components/IdentificacionUsuario.php
@@ -17,7 +17,8 @@ class IdentificacionUsuario extends CBaseUserIdentity {
//const ERROR_UNKNOWN_IDENTITY=100;
const ERROR_ESTADO_NOACTIVO=3;
- const ERROR_ESTADO_DENEGADO=4;
+ const ERROR_ESTADO_BORRADO=4;
+ const ERROR_ESTADO_DENEGADO=5;
/**
* Contructor.
@@ -43,6 +44,8 @@ class IdentificacionUsuario extends CBaseUserIdentity {
$this->errorCode = self::ERROR_PASSWORD_INVALID;
else if($usuario->estado == Usuario::ESTADO_NOACTIVO)
$this->errorCode = self::ERROR_ESTADO_NOACTIVO;
+ else if($usuario->estado == Usuario::ESTADO_BORRADO)
+ $this->errorCode = self::ERROR_ESTADO_BORRADO;
else if($usuario->estado == Usuario::ESTADO_DENEGADO)
$this->errorCode = self::ERROR_ESTADO_DENEGADO;
else {
diff --git a/www/protected/controllers/RegistroUsuarioController.php b/www/protected/controllers/RegistroUsuarioController.php
index c7e8a94..abbb155 100644
--- a/www/protected/controllers/RegistroUsuarioController.php
+++ b/www/protected/controllers/RegistroUsuarioController.php
@@ -228,6 +228,11 @@ class RegistroUsuarioController extends Controller {
'mensaje' => Yii::t('profind', 'No se puede cancelar la cuenta.
La URL de cancelación es incorrecta.'),
));
} elseif ($usuario->estado == Usuario::ESTADO_NOACTIVO) {
+ $this->render('//site/error', array(
+ 'titulo' => Yii::t('profind', 'Cuenta no confirmada'),
+ 'mensaje' => Yii::t('profind', 'No se ha realizado ningún cambio.
La cuenta no está confirmada.'),
+ ));
+ } elseif ($usuario->estado == Usuario::ESTADO_BORRADO) {
$this->render('//site/error', array(
'titulo' => Yii::t('profind', 'Cuenta ya cancelada'),
'mensaje' => Yii::t('profind', 'No se ha realizado ningún cambio.
La cuenta ya estaba cancelada.'),
diff --git a/www/protected/models/Usuario.php b/www/protected/models/Usuario.php
index da5aba3..366f6c7 100644
--- a/www/protected/models/Usuario.php
+++ b/www/protected/models/Usuario.php
@@ -28,7 +28,8 @@ class Usuario extends CActiveRecord {
const ESTADO_NOACTIVO = 0;
const ESTADO_ACTIVO = 1;
- const ESTADO_DENEGADO = 2;
+ const ESTADO_BORRADO = 2;
+ const ESTADO_DENEGADO = 3;
const TIPO_USUARIO_COORDINADOR = 'C';
const TIPO_USUARIO_AGENTE = 'A';