From 822c04f3019092a0a93707f3e8086c8f6047dfd9 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 25 Oct 2019 15:37:34 +0800 Subject: [PATCH] update --- app/Http/Controllers/Admin/UserController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Admin/UserController.php b/app/Http/Controllers/Admin/UserController.php index c0a93290..77f9deee 100644 --- a/app/Http/Controllers/Admin/UserController.php +++ b/app/Http/Controllers/Admin/UserController.php @@ -43,7 +43,7 @@ class UserController extends Controller $user->email = $request->input('email'); $user->password = password_hash($request->input('password'), PASSWORD_DEFAULT); $user->transfer_enable = $request->input('transfer_enable') * 1073741824; - $user->expired_at = $request->input('expired_at'); + $user->expired_at = $request->input('expired_at') ? $request->input('expired_at') : 0; $user->banned = $request->input('banned'); $user->is_admin = $request->input('is_admin'); if (!$user->save()) {