users icon indicating copy to clipboard operation
users copied to clipboard

Add Validators t

Open zhkuskov opened this issue 4 years ago • 1 comments

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

zhkuskov avatar Nov 29 '20 17:11 zhkuskov

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?

rochamarcelo avatar Dec 10 '20 12:12 rochamarcelo