From 5db5134ae0379ada2d7e726377bf8f90ceac72fb Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 14 Aug 2018 18:14:41 -0700 Subject: [PATCH] Set activated to default on when new user is created --- app/Http/Controllers/UsersController.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/UsersController.php b/app/Http/Controllers/UsersController.php index 53036414b6..43707a46c2 100755 --- a/app/Http/Controllers/UsersController.php +++ b/app/Http/Controllers/UsersController.php @@ -86,8 +86,11 @@ class UsersController extends Controller $userPermissions = Helper::selectedPermissionsArray($permissions, Input::old('permissions', array())); $permissions = $this->filterDisplayable($permissions); + $user = new User; + $user->activated = 1; + return view('users/edit', compact('groups', 'userGroups', 'permissions', 'userPermissions')) - ->with('user', new User); + ->with('user', $user); } /**