- FIX

parent 9f6cab90
......@@ -126,9 +126,7 @@ class UserController extends \common\components\BaseController {
$model->password = Yii::$app->getSecurity()->generatePasswordHash($model->password);
$model->activate_code = md5($model->password . 'xdf5sf');
$model->source = User::SOURCE_DEFAULT;
if (!$model->save(false)) {
echo json_encode(array('errors'=>$model->getErrors()));
}
$model->save(false);
$assignment = new AuthAssignment();
$assignment->item_name = 'user';
......
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