فهرست منبع

优化管理员密码表单代码

jqh 5 سال پیش
والد
کامیت
36425e69bf
1فایلهای تغییر یافته به همراه2 افزوده شده و 6 حذف شده
  1. 2 6
      src/Controllers/UserController.php

+ 2 - 6
src/Controllers/UserController.php

@@ -175,12 +175,8 @@ class UserController extends AdminController
                 $form->password('password', trans('admin.password'))
                     ->minLength(5)
                     ->maxLength(20)
-                    ->customFormat(function ($v) {
-                        if ($v == $this->password) {
-                            return;
-                        }
-
-                        return $v;
+                    ->customFormat(function () {
+                        return;
                     });
             } else {
                 $form->password('password', trans('admin.password'))