Fixes

parent 841323fe
......@@ -118,7 +118,7 @@ class UserController extends \common\components\BaseController {
$model->attributes = $_POST['User'];
if ($model->validate()) {
$model->password = md5($model->password);
$model->password = Yii::$app->getSecurity()->generatePasswordHash($model->password);
$model->activate_code = md5($model->password . 'xdf5sf');
$model->source = User::SOURCE_DEFAULT;
$model->save(false);
......
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