| xqd
@@ -54,7 +54,7 @@ class UserController extends CommonController
|
|
|
$input['role'] = $job_role->role;
|
|
|
$input['job_name'] = $job_role->display_name;
|
|
|
|
|
|
- if($input['pswd'] != '')$input['pswd'] = Crypt::encrypt($input['pswd']);
|
|
|
+ if(isset($input['pswd']))$input['pswd'] = Crypt::encrypt($input['pswd']);
|
|
|
|
|
|
if (!User::find($user_id)->update($input)) return back()->withErrors('用户信息更新失败,请稍后重试!');
|
|
|
|