\n";
return(FALSE);
}
/*
** Trim excess whitespace and (partially) validate the input.
*/
$_REQUEST['inputLogin'] = trim($_REQUEST['Login']);
$_REQUEST['inputPassword'] = trim($_REQUEST['Password']);
if(strlen($_REQUEST['inputLogin']) < 4)
{
$ActionResults[] = localize('Your login must be at least four characters') . "
\n";
return(FALSE);
}
if(strlen($_REQUEST['inputPassword']) < 4)
{
$ActionResults[] = localize('Your password must be at least four characters') . "
\n";
return(FALSE);
}
/*
** Make sure that the user has selected a unique login.
*/
if(!isLoginUnique($_REQUEST['inputLogin'], $ID))
{
$ActionResults[] = localize('Login in use.');
return(FALSE);
}
/*
** If everything is okay so far, we can update the user's login and
** password.
*/
if(!updatePassword($_REQUEST['ID'],
$_REQUEST['inputLogin'], $_REQUEST['inputPassword']))
{
$ActionResults[] = localize('Update was unsuccessful. Check the html comments.');
return(FALSE);
}
//update UserInfo
$UserInfo['Login'] = $_REQUEST['inputLogin'];
$UserInfo['Password'] = $_REQUEST['inputPassword'];
$ActionResults[] = localize('Actualizado con exito!');
return(TRUE);
?>