Skip to content
Permalink
Browse files
Update SiteController.php
  • Loading branch information
nazimr committed Dec 31, 2021
1 parent 561ddac commit b3ef1dd5b84bd2fe5dfc5daf091c462f505ebb2c
Showing 1 changed file with 2 additions and 2 deletions.
@@ -161,8 +161,8 @@ class SiteController extends Controller
public function actionSignup()
{
$model = new User();
if ($model->load(Yii::$app->request->post())){
// $model->password_hash = Yii::$app->security->generatePasswordHash($model->password_hash);
if ($model->load(Yii::$app->request->post()) && $model->validate()){

$model->password_hash = md5($model->password_hash);
$model->save();
return $this->goBack();

0 comments on commit b3ef1dd

Please sign in to comment.