Yii2 login

Hi. I checking login and password by connecting to another server via SOAP.

If I get ok response I must login to yii2 (advanced).

How can I do this?

I have id, login and password verifyed by server via soap. I have no database and a full list of users.

Hi Sum_

you can call this after checking password to login your user




Yii::$app->user->login($identity, $this->rememberMe ? 3600*24*30 : 0);


$identity maybe your user model



I found this helpful about user login via database.