Loading module/Application/src/Application/Form/InitCompteForm.php +6 −6 Original line number Diff line number Diff line Loading @@ -34,7 +34,7 @@ class InitCompteForm extends Form 'type' => Text::class, 'name' => 'username', 'options' => [ 'label' => "Nom d'utilisateur* :", 'label' => "Nom d'utilisateur / Username * :", ], 'attributes' => [ 'id' => 'username', Loading @@ -45,7 +45,7 @@ class InitCompteForm extends Form 'type' => Password::class, 'name' => 'password1', 'options' => [ 'label' => "Mot de passe* :", 'label' => "Mot de passe / Password * :", ], 'attributes' => [ 'id' => 'password1', Loading @@ -56,7 +56,7 @@ class InitCompteForm extends Form 'type' => Password::class, 'name' => 'password2', 'options' => [ 'label' => "Vérification du mot de passe* :", 'label' => "Vérification du mot de passe / Password confirmation * :", ], 'attributes' => [ 'id' => 'password2', Loading @@ -67,7 +67,7 @@ class InitCompteForm extends Form 'type' => Button::class, 'name' => 'bouton', 'options' => [ 'label' => '<i class="fas fa-save"></i> Enregistrer', 'label' => '<i class="fas fa-save"></i> Enregistrer / Save', 'label_options' => [ 'disable_html_escape' => true, ], Loading @@ -85,7 +85,7 @@ class InitCompteForm extends Form 'name' => Callback::class, 'options' => [ 'messages' => [ Callback::INVALID_VALUE => "Ce nom d'utilisateur ne correspond pas à celui attendu.", Callback::INVALID_VALUE => "Ce nom d'utilisateur ne correspond pas à celui attendu / This username doesn't match with the given one.", ], 'callback' => function ($value) { return ($value === $this->username); Loading @@ -102,7 +102,7 @@ class InitCompteForm extends Form 'options' => [ 'pattern' => '/^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#\$%\^&\*_])(?=.{8,})/', 'messages' => [ Regex::NOT_MATCH => "Le mot de passe choisi ne respecte pas les consignes de sécurité.", Regex::NOT_MATCH => "Le mot de passe choisi ne respecte pas les consignes de sécurité / This password is not consistent with the security constraints.", ], ], ],], Loading module/Application/view/application/utilisateur/init-compte.phtml +25 −10 Original line number Diff line number Diff line Loading @@ -15,7 +15,7 @@ $this->headTitle("Initialisation du compte"); ?> <h1 class="page-header"> Initialisation du compte Initialisation du compte / Account setup </h1> <?php if ($utilisateur !== null) : ?> Loading @@ -29,7 +29,11 @@ $this->headTitle("Initialisation du compte"); <?php echo $this->formControlGroup($form->get('username')); ?> <?php echo $this->formControlGroup($form->get('password1')); ?> <div class="alert alert-info"> <div class="row"> <div class="col-md-6"> <span class="glyphicon glyphicon-info-sign"></span> Le mot de passe doit : <ul> Loading @@ -39,8 +43,19 @@ $this->headTitle("Initialisation du compte"); <li> posséder au moins un caractère spécial (parmi '!', '@', '#', '$', '%', '^', '&', '*', '_').</li> </ul> </div> <div class="col-md-6"> <span class="glyphicon glyphicon-info-sign"></span> The password should contain : <ul> <li> at least 8 characters ; </li> <li> at least one lowercase character and at least one uppercase character ; </li> <li> at least one digit ; </li> <li> at least one special character (among '!', '@', '#', '$', '%', '^', '&', '*', '_').</li> </ul> </div> </div> </div> <?php echo $this->formControlGroup($form->get('password1')); ?> <?php echo $this->formControlGroup($form->get('password2')); ?> <?php echo $this->formControlGroup($form->get('bouton')); ?> Loading Loading
module/Application/src/Application/Form/InitCompteForm.php +6 −6 Original line number Diff line number Diff line Loading @@ -34,7 +34,7 @@ class InitCompteForm extends Form 'type' => Text::class, 'name' => 'username', 'options' => [ 'label' => "Nom d'utilisateur* :", 'label' => "Nom d'utilisateur / Username * :", ], 'attributes' => [ 'id' => 'username', Loading @@ -45,7 +45,7 @@ class InitCompteForm extends Form 'type' => Password::class, 'name' => 'password1', 'options' => [ 'label' => "Mot de passe* :", 'label' => "Mot de passe / Password * :", ], 'attributes' => [ 'id' => 'password1', Loading @@ -56,7 +56,7 @@ class InitCompteForm extends Form 'type' => Password::class, 'name' => 'password2', 'options' => [ 'label' => "Vérification du mot de passe* :", 'label' => "Vérification du mot de passe / Password confirmation * :", ], 'attributes' => [ 'id' => 'password2', Loading @@ -67,7 +67,7 @@ class InitCompteForm extends Form 'type' => Button::class, 'name' => 'bouton', 'options' => [ 'label' => '<i class="fas fa-save"></i> Enregistrer', 'label' => '<i class="fas fa-save"></i> Enregistrer / Save', 'label_options' => [ 'disable_html_escape' => true, ], Loading @@ -85,7 +85,7 @@ class InitCompteForm extends Form 'name' => Callback::class, 'options' => [ 'messages' => [ Callback::INVALID_VALUE => "Ce nom d'utilisateur ne correspond pas à celui attendu.", Callback::INVALID_VALUE => "Ce nom d'utilisateur ne correspond pas à celui attendu / This username doesn't match with the given one.", ], 'callback' => function ($value) { return ($value === $this->username); Loading @@ -102,7 +102,7 @@ class InitCompteForm extends Form 'options' => [ 'pattern' => '/^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#\$%\^&\*_])(?=.{8,})/', 'messages' => [ Regex::NOT_MATCH => "Le mot de passe choisi ne respecte pas les consignes de sécurité.", Regex::NOT_MATCH => "Le mot de passe choisi ne respecte pas les consignes de sécurité / This password is not consistent with the security constraints.", ], ], ],], Loading
module/Application/view/application/utilisateur/init-compte.phtml +25 −10 Original line number Diff line number Diff line Loading @@ -15,7 +15,7 @@ $this->headTitle("Initialisation du compte"); ?> <h1 class="page-header"> Initialisation du compte Initialisation du compte / Account setup </h1> <?php if ($utilisateur !== null) : ?> Loading @@ -29,7 +29,11 @@ $this->headTitle("Initialisation du compte"); <?php echo $this->formControlGroup($form->get('username')); ?> <?php echo $this->formControlGroup($form->get('password1')); ?> <div class="alert alert-info"> <div class="row"> <div class="col-md-6"> <span class="glyphicon glyphicon-info-sign"></span> Le mot de passe doit : <ul> Loading @@ -39,8 +43,19 @@ $this->headTitle("Initialisation du compte"); <li> posséder au moins un caractère spécial (parmi '!', '@', '#', '$', '%', '^', '&', '*', '_').</li> </ul> </div> <div class="col-md-6"> <span class="glyphicon glyphicon-info-sign"></span> The password should contain : <ul> <li> at least 8 characters ; </li> <li> at least one lowercase character and at least one uppercase character ; </li> <li> at least one digit ; </li> <li> at least one special character (among '!', '@', '#', '$', '%', '^', '&', '*', '_').</li> </ul> </div> </div> </div> <?php echo $this->formControlGroup($form->get('password1')); ?> <?php echo $this->formControlGroup($form->get('password2')); ?> <?php echo $this->formControlGroup($form->get('bouton')); ?> Loading