Jluis Posted January 3, 2019 Share Posted January 3, 2019 Salut , j'ai crée un module permettant d'ajouter une confirmation de mot de passe dans le formulaire d'inscription . cette nouvelle input ne doit pas apparaître dans la page identite , pour cela j'ai mis la condition if dans le hook suivant : public function hookAdditionalCustomerFormFields($params) { if ($this->context->controller->php_self != 'IdentityController') { return [ (new FormField) ->setName('confirmpwd') ->setType('password') ->setRequired(true) //->setRequired(true) Dأ©commenter pour rendre obligatoire ->setLabel($this->l('Confirmation Mot de passe*')), ]; } } mais l'input de confirmation s'avère dans la page identite . comment je peux le corriger afin q'uil ne s'afiiche pas à cette page identite ? merci Link to comment Share on other sites More sharing options...
Soyons Solidaire Posted January 4, 2019 Share Posted January 4, 2019 (edited) Salut, tu peux le partager pour teste ? sur quel version de PS Edited January 4, 2019 by Soyons zen (see edit history) Link to comment Share on other sites More sharing options...
stevent Posted April 25, 2019 Share Posted April 25, 2019 Interessant ! Ou peut on le trouver pour tester ? Link to comment Share on other sites More sharing options...
PixGeek Posted April 26, 2019 Share Posted April 26, 2019 Idem ! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now