Skip to content

Commit

Permalink
修复保存密码的逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
PorygonCN committed Oct 27, 2023
1 parent f8ef27c commit fc93239
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Controllers/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public function form()
$form->disableDeleteButton();
}
})->saving(function (Form $form) {
if ($form->password && $form->model()->get('password') != $form->password) {
if ($form->password && $form->model()->password != $form->password) {
$form->password = bcrypt($form->password);
}

Expand Down

0 comments on commit fc93239

Please sign in to comment.