CakeDC / users

Users Plugin for CakePHP
https://www.cakedc.com
Other
521 stars 297 forks source link

Add Validators t #927

Closed zhkuskov closed 4 months ago

zhkuskov commented 3 years ago

Hello, thanks for your plugin! The ability to add a validator to the CakeDC.Users model for registration is missing. This solution: Extending the Plugin - doesn't fit. Because I'm fine with the model and controller from the plugin. In addition, when updating the plugin, you can change the model code. Also, adding a validator will not work using the Users.Global.beforeRegister event - because event result should only be user entity

rochamarcelo commented 3 years ago

Hi @zhkuskov I don't see how you would add validator without extending plugin's model UsersTable.

Could you give more details of your use case?

ajibarra commented 4 months ago

Closing this because it has no response since 2020