/var/www/vhosts/ihelp.ro/httpdocs/vendor/cakedc/users/Docs/Documentation
NameSizeModeActions
Migration/-0755rm
OneTimePasswordAuthenticator/-0755rm
Authentication.md72790644editdlrm
Authorization.md31040644editdlrm
Configuration.md79340644editdlrm
Events.md11220644editdlrm
Extending-the-Plugin.md68270644editdlrm
Installation.md31810644editdlrm
InterceptLoginAction.md14800644editdlrm
Overview.md6580644editdlrm
SocialAuthentication.md61580644editdlrm
Translations.md5770644editdlrm
Two-Factor-Authenticator.md8440644editdlrm
UserHelper.md21110644editdlrm
Yubico-U2F.md5500644editdlrm
Edit: /var/www/vhosts/ihelp.ro/httpdocs/vendor/cakedc/users/Docs/Documentation/Events.md (1122B)
Events ====== The events in this plugin follow these conventions `.`: * `Users.Authentication.afterLogin` * `Users.Authentication.beforeLogout` * `Users.Authentication.afterLogout` * `Users.Global.beforeRegister` * `Users.Global.afterRegister` * `Users.Global.beforeSocialLoginUserCreate` * `Users.Global.afterResetPassword` * `Users.Global.onExpiredToken` * `Users.Global.afterResendTokenValidation` The events allow you to inject data into the plugin on the before* plugins and use the data for your own business, for example /** * beforeRegister event */ public function eventRegister() { $this->eventManager()->on(Plugin::EVENT_BEFORE_REGISTER, function ($event) { //the callback function should return the user data array to force register return $event->data['usersTable']->newEntity([ 'username' => 'forceEventRegister', 'email' => 'eventregister@example.com', 'password' => 'password', 'active' => true, 'tos' => true, ]); }); $this->register(); $this->render('register'); } ```