Answer the question
In order to leave comments, you need to log in
How to pass EVENT_AFTER_LOGIN event in js to Yii2?
You need to call the js function at the moment when the user is logged in.
Answer the question
In order to leave comments, you need to log in
EVENT_AFTER_LOGIN has nothing to do with it.
To implement such logic, you need to write logic and authorize the user via ajax and, after receiving the successful authorization flag, execute the necessary js
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question