Skip to content

Commit

Permalink
New feature: afterSuccessfulLogin has argument $identity
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Oct 4, 2018
1 parent dcceaeb commit b6d36ea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions application/controllers/admin/authentication.php
Expand Up @@ -173,6 +173,7 @@ public static function prepareLogin()
Yii::app()->session['loginsummary'] = self::getSummary();

$event = new PluginEvent('afterSuccessfulLogin');
$event->set('identity', $identity);
App()->getPluginManager()->dispatchEvent($event);

return array('success');
Expand Down

0 comments on commit b6d36ea

Please sign in to comment.