A
A
Alexander Sedov2018-05-08 00:13:38
Yii
Alexander Sedov, 2018-05-08 00:13:38

Yii2 intermediate authorization?

Good day.
There was such a question on Yii2:
there are standard LoginForm model and login view. Where the user fills in the login and password to enter. But there was a need between authorization and further redirects (renders) to render another view (with a verification code input field). Those. if the user has the add-on function enabled. verification, then he first gets to the login view, then to the verification code input view, then he already has access to the rest of the actions, or if the user has the add-on function turned off. checks, then he simply enters his login and password and then he already has access to actions. Actually how can this be done? Thanks for the help.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
profaller, 2018-05-08
@profaller

This can be done by hand. They described everything themselves, go ahead. Or write the code for you?

M
Maxim Timofeev, 2018-05-08
@webinar

There are a million implementation options. I would generally do it on js (ajax). We sent a form with authorization data, received an ok response (and, for example, sent an SMS), hid the form, showed another one with a code. They sent everything. Checked. Authorized. Redirected.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question