Add another flash to example for more complex view

This commit is contained in:
bscheshirwork
2018-10-19 17:50:55 +03:00
parent 72e930e0c1
commit c039033817

View File

@ -33,6 +33,7 @@ Please, before you override a controller's action, make sure that it won't be en
\Yii::$app->end();
},
'on ' . \Da\User\Event\FormEvent::EVENT_AFTER_RESEND => function (\Da\User\Event\FormEvent $event) {
\Yii::$app->session->setFlash('info', Yii::t('usuario', 'A message has been sent to your email address. It contains a confirmation link that you must click to complete registration.'));
\Yii::$app->controller->redirect(['/user/security/login']);
\Yii::$app->end();
},