Skip to content

Commit

Permalink
#280 -- e-BlueInfo new users form
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonmoura committed Aug 6, 2020
1 parent 1bfb0bc commit 59e3291
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
4 changes: 2 additions & 2 deletions server/pub/register-eblueinfo.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php require_once(dirname(__FILE__)."/../templates/".DEFAULT_SKIN."/header-eblueinfo.tpl.php"); ?>
<?php $birth = ( $usr->getBirthday() ) ? date("d/m/Y", strtotime($usr->getBirthday())) : ''; ?>

<section class="row" id="containerCenter">
<section class="row">
<h4 class="center-align"><?php echo FREE_REGISTRY; ?></h4>
<form id="cadastro" class="col s10 offset-s1 m6 offset-m3 l4 offset-l4" method="post" name="cadastro" novalidate>
<div class="row">
Expand All @@ -13,7 +13,7 @@

<?php if ( $response["status"] === false ) : ?>
<div class="col s12">
<div class="card-panel red success-text">
<div class="card-panel red success-text center-align">
<span class="white-text"><?php echo $response["msg"]; ?></span>
</div>
</div>
Expand Down
5 changes: 4 additions & 1 deletion server/pub/translations.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@
define("UPDATE_USER_TITLE","Atualização dos dados");
define("USER_ADDED",'Usuário registrado com sucesso.');
define("USER_EXISTS","<b>Usuário já registrado</b><br />Tente autenticar-se com este usuário ou acesse<br /><b>\"esqueci minha senha\"</b> na caixa de login de usuários.");
define("USER_EXISTS_EBLUEINFO","<b>Usuário já registrado</b><br />Por favor, tente autenticar-se com este usuário.");
define("USER_ADD_ERROR","<b>Erro no cadastro</b>");
define("USER_ADD_SUCCESS","<b>Usuário registrado com sucesso!</b>");
define("USER_SEND_CONFIRMATION","<b>Usuário registrado com sucesso!</b><br />Enviamos um e-mail com link de confirmação de seu registro.<br />Se demorar para chegar, confira sua caixa de SPAM e lixo eletrônico.<br />Clique no link enviado para ativar seu registro de usuário da MinhaBVS.");
Expand Down Expand Up @@ -467,6 +468,7 @@
define("UPDATE_USER_TITLE","Actualización de los datos");
define("USER_ADDED",'Usuario registrado con succeso.');
define("USER_EXISTS","<b>Ya existe registro de usuario</b><br />Pruebe autenticarse con ese usuário o acceda<br /><b>\"Olvide mi contraseña\"</b> en el area de login del servicio.");
define("USER_EXISTS_EBLUEINFO","<b>Ya existe registro de usuario</b><br />Por favor, pruebe autenticarse con ese usuário.");
define("USER_ADD_ERROR","<b>Erro en el registro</b>");
define("USER_ADD_SUCCESS","<b>¡Usuario registrado con succeso!</b>");
define("USER_SEND_CONFIRMATION","<b>¡Registro de usuario realizado con éxito!</b><br />Enviamos un mensaje a su correo electrónico con enlace de confirmación de su registro como usuario de MiBVS.<br />Si tarda en llegar, compruebe su caja de SPAM y basura electrónica.<br />Por favor haga clic en el enlace enviado para activar su usuario de MiBVS.");
Expand Down Expand Up @@ -830,7 +832,8 @@
define("TIP_LOGIN","The access login needs to be the user e-mail, eg: user@bireme.org");
define("UPDATE_USER_TITLE","Update user");
define("USER_ADDED",'User added successfully');
define("USER_EXISTS","<b>User already exists</b><br />Try to log in with this user, if you have no success trying to authenticate with this user and don\'t remember the password,<br />use the link <b>\"forgot my password\"</b> in the user login box.");
define("USER_EXISTS","<b>User already exists</b><br />Try to log in with this user, if you have no success trying to authenticate with this user and don't remember the password,<br />use the link <b>\"forgot my password\"</b> in the user login box.");
define("USER_EXISTS_EBLUEINFO","<b>User already exists</b><br />Please try to log in with this user.");
define("USER_ADD_ERROR","<b>Registry error</b>");
define("USER_ADD_SUCCESS","<b>User registration successful!</b>");
define("USER_SEND_CONFIRMATION","<b>User registration successful!</b><br />We sent a confirmation link to your account for your e-mail.<br />If it takes too long to get there, check out your SPAM box and junk mail.<br />Please click on the link sent to activate your account in MyVHL.");
Expand Down
9 changes: 7 additions & 2 deletions server/pub/userData.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,13 @@

$retValue = UserDAO::fillOrcidData($usr->getID(), $usr->getOrcid());
} elseif ($migrationResult["status"] === false && $migrationResult["error"] === "userexists") {
$response["msg"] = USER_EXISTS;
$response["status"] = false;
if ( 'e-blueinfo' == $usr->getSource() ) {
$response["msg"] = USER_EXISTS_EBLUEINFO;
$response["status"] = false;
} else {
$response["msg"] = USER_EXISTS;
$response["status"] = false;
}
} else {
$response["msg"] = USER_ADD_ERROR;
$response["status"] = false;
Expand Down

0 comments on commit 59e3291

Please sign in to comment.