diff --git a/custompages/first_login-dist.php b/custompages/first_login-dist.php index 436069ae71..79d37e0fa7 100644 --- a/custompages/first_login-dist.php +++ b/custompages/first_login-dist.php @@ -11,17 +11,17 @@ require_once __DIR__.'/language.php'; /** * Security checks */ -if (! isset($_SESSION['conditional_login']['uid'])) +if (!isset($_SESSION['conditional_login']['uid'])) die("Not Authorised"); if (isset($_POST['password'])) { $u = api_get_user_info($_SESSION['conditional_login']['uid']); if ($_POST['password'] != $_POST['password2']) { - header('Location: '. api_get_self().'?invalid=2'); + header('Location: '.api_get_self().'?invalid=2'); exit(); } - if (empty($_POST['password'])){ //|| !api_check_password($password)) { //Pass must be at least 5 char long with 2 digits and 3 letters - header('Location: '. api_get_self().'?invalid=1'); + if (empty($_POST['password'])) { //|| !api_check_password($password)) { //Pass must be at least 5 char long with 2 digits and 3 letters + header('Location: '.api_get_self().'?invalid=1'); exit(); } $password = $_POST['password']; @@ -97,23 +97,23 @@ $www = api_get_path('WEB_PATH'); -

+

-
+
'.$error_message.'
'; }?>
- +
- +
- +
- Go to your portal + Go to your portal diff --git a/custompages/lostpassword-dist.php b/custompages/lostpassword-dist.php index fb4fd1605b..ed441b3d1b 100644 --- a/custompages/lostpassword-dist.php +++ b/custompages/lostpassword-dist.php @@ -12,7 +12,7 @@ $rootWeb = api_get_path('WEB_PATH'); ?> - <?php echo custompages_get_lang('LostPassword');?> + <?php echo custompages_get_lang('LostPassword'); ?> @@ -44,7 +44,7 @@ $rootWeb = api_get_path('WEB_PATH');
'; + echo '
'; } echo isset($content['form']) ? $content['form'] : '' diff --git a/custompages/registration-dist.php b/custompages/registration-dist.php index 54effdd461..e547c67e4a 100644 --- a/custompages/registration-dist.php +++ b/custompages/registration-dist.php @@ -81,7 +81,7 @@ EOT; ?> - <?php echo custompages_get_lang('Registration');?> + <?php echo custompages_get_lang('Registration'); ?> diff --git a/custompages/registration-feedback-dist.php b/custompages/registration-feedback-dist.php index d2945918c2..fe35095e73 100644 --- a/custompages/registration-feedback-dist.php +++ b/custompages/registration-feedback-dist.php @@ -14,7 +14,7 @@ $rootWeb = api_get_path('WEB_PATH'); ?> - <?php echo custompages_get_lang('Registration');?> + <?php echo custompages_get_lang('Registration'); ?> @@ -40,7 +40,7 @@ $rootWeb = api_get_path('WEB_PATH');
- +