Added FAILED_LOGIN event
This commit is contained in:
Lorenzo Milesi
2020-02-05 21:34:39 +01:00
parent 554400d04a
commit a1c5c364e6
4 changed files with 7 additions and 0 deletions

View File

@ -148,6 +148,10 @@ class SecurityController extends Controller
return $this->goBack();
}
else
{
$this->trigger(FormEvent::EVENT_FAILED_LOGIN, $event);
}
}
return $this->render(

View File

@ -27,6 +27,7 @@ class FormEvent extends Event
const EVENT_AFTER_LOGIN = 'afterLogin';
const EVENT_BEFORE_REGISTER = 'beforeRegister';
const EVENT_AFTER_REGISTER = 'afterRegister';
const EVENT_FAILED_LOGIN = 'failedLogin';
protected $form;