Se introduce pantalla de mensaje de rasultado en confirmación de registro

git-svn-id: https://192.168.0.254/svn/Proyectos.Incam_PROFIND_Web/trunk@6 3fe1ab16-cfe0-e34b-8c9f-7d8c168d430d
This commit is contained in:
roberto 2012-09-21 11:51:17 +00:00
parent 87169c214c
commit 599837e2e2
4 changed files with 54 additions and 4 deletions

View File

@ -7,6 +7,10 @@ class RegistroUsuarioController extends Controller {
public $defaultAction = 'registrar';
public function init(){
$this->layout = '/layouts/mensajes';
}
public function accessRules()
{
return array(
@ -93,16 +97,16 @@ class RegistroUsuarioController extends Controller {
$usuario->estado = Usuario::ESTADO_ACTIVO;
$usuario->clave_seguridad = $usuario->encrypt(microtime());
$usuario->save();
$this->enviarMailConfirmacionActivacion($usuario);
//$this->render('/user/message', array('title' => Yii::t("User activation"), 'content' => Yii::t("You account is activated.")));
$this->enviarMailConfirmacionActivacion($usuario);
$this->render('confirmacion_usuario');
Yii::log ("You account is activated.");
} else {
//$this->render('/user/message', array('title' => Yii::t("User activation"), 'content' => Yii::t("Incorrect activation URL.")));
$this->render('error_confirmacion');
Yii::log ("Incorrect activation URL. 2 ");
}
}
else {
//$this->render('/user/message', array('title' => Yii::t("User activation"), 'content' => Yii::t("Incorrect activation URL.")));
$this->render('error_confirmacion');
Yii::log ("Incorrect activation URL. 1");
}
}

View File

@ -0,0 +1,24 @@
<!DOCTYPE html>
<html lang="<?php echo Yii::app()->language; ?>">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title><?php echo CHtml::encode($this->pageTitle); ?></title>
<!-- notifications -->
<link rel="stylesheet" href="<?php echo Yii::app()->theme->baseUrl; ?>/lib/sticky/sticky.css" />
</head>
<body class="sidebar_right">
<!-- main content -->
<div id="contentwrapper">
<div class="main_content">
<?php echo $content; ?>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,11 @@
<html>
<head></head>
<body>
<h3>Gracias por registrarse en PROFIND</h3>
<p>
Gracias por registrarse en <a href="http://www.xxxxxxx.xxx/">PROFIND</a>.<br>
Su cuenta ha sido confirmada.
</p>
<p>El equipo de <a href="http://www.xxxxxxx.xxx/">PROFIND</a></p>
</body>
</html>

View File

@ -0,0 +1,11 @@
<html>
<head></head>
<body>
<h3>Se ha producido un error, al registrarse en PROFIND</h3>
<p>
Disculpe las molestias, pongase en contacto con <a href="http://www.xxxxxxx.xxx/">PROFIND</a>.<br>
Para solucionar el problema.
</p>
<p>El equipo de <a href="http://www.xxxxxxx.xxx/">PROFIND</a></p>
</body>
</html>