Open bscheshirwork opened 5 years ago
related #280
@bscheshirwork I think is a good addition. As soon as the translations messages are updated on the PR #280 I'll merge.
So... This behavior (message after trigger)... Is this done intentionally?
i.e. don't show message if trigger fail?
I tell about case https://github.com/2amigos/yii2-usuario/blob/5181bbc60a2c72aa37344a260e39cd6f6211a803/src/User/Controller/RegistrationController.php#L233-L240
where functional inside trigger is terminate application. In this case message has not write into session.
@bscheshirwork Why a user would terminate the application from the event? Thats not really logic.
For example. Application will terminate in many places.
Becouse I can do trhis. Becouse I can define logic in config w/o redefine class https://github.com/bscheshirwork/yii2-app-advanced-redis/blob/7cdce8086d8be6d548ab0dea473bb5712b3b0384/backend/config/main.php#L52-L76
What steps will reproduce the problem?
Some action set flash message before run trigger, but I can see 2 poin who set flash message after trigger. Of course I use only this action :smile_cat:
What is the expected result?
same behavior for all place All like this: is before https://github.com/2amigos/yii2-usuario/blob/5181bbc60a2c72aa37344a260e39cd6f6211a803/src/User/Controller/RegistrationController.php#L195-L197 Or all is after
What do you get instead?
This is after only... https://github.com/2amigos/yii2-usuario/blob/5181bbc60a2c72aa37344a260e39cd6f6211a803/src/User/Controller/RegistrationController.php#L233-L240
https://github.com/2amigos/yii2-usuario/blob/5181bbc60a2c72aa37344a260e39cd6f6211a803/src/User/Controller/RecoveryController.php#L168-L170