A
A
alehandroWEB2019-10-14 11:20:12
Yii
alehandroWEB, 2019-10-14 11:20:12

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

1 answer(s)
E
Evgeny Bukharev, 2019-10-14
@evgenybuckharev

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 question

Ask a Question

731 491 924 answers to any question