Answer the question
In order to leave comments, you need to log in
Authorization through VK Yii2 does not work?
I did authorization as it says here:
https://github.com/yiisoft/yii2-authclient/blob/ma...
and here:
https://github.com/yiisoft/yii2-authclient/blob/ma...
An error occurs while logging in:
PHP Notice – yii\base\ErrorException
Undefined index: login
$password = Yii::$app->security->generateRandomString(6);
$user = new User([
'username' => $attributes['login'],
'email' => $attributes['email'],
'password' => $password,
]);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question