SandraNanou Posted July 31, 2019 Share Posted July 31, 2019 (edited) Bonjour, Savez-vous comment désactiver un compte par défaut à la création ? J'ai vérifié AuthController.php mais ne voit pas la fonction. Merci ! Edited July 31, 2019 by SandraNanou (see edit history) Link to comment Share on other sites More sharing options...
Eolia Posted July 31, 2019 Share Posted July 31, 2019 Par défaut c'est activé, il faut donc rajouter $customer->active = 0; avant le $customer->add(); Link to comment Share on other sites More sharing options...
SandraNanou Posted July 31, 2019 Author Share Posted July 31, 2019 Dans AuthController ? Je ne vois pas $customer->add() Merci beaucoup Link to comment Share on other sites More sharing options...
SandraNanou Posted July 31, 2019 Author Share Posted July 31, 2019 Désolée de relancer mais je n'ai pas trouvé la fonction à modifier ! Link to comment Share on other sites More sharing options...
SandraNanou Posted July 31, 2019 Author Share Posted July 31, 2019 (edited) J'ai trouvé la solution : Ce n'est plus dans AuthController.php mais dans classes>Customer.php : modifier public $active = true; pour public $active = false; Tout simplement Edited July 31, 2019 by SandraNanou RESOLU (see edit history) 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