- Debugging Registration

parent 84264324
......@@ -137,6 +137,8 @@ class UserController extends \common\components\BaseController {
$modelLogin = new LoginForm();
$modelLogin->password = $password;
$modelLogin->username = $model->email;
echo json_encode(array('errors'=>'QWERTY'));
Yii::$app->end();
if ($modelLogin->validate()) {
Yii::$app->user->login($modelLogin->getUser(), $modelLogin->rememberMe ? 3600 * 24 * 30 : 0);
$this->redirect(array("/school/course/index"));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment