From d309f67df011e1c98d6e3f3dcd8aa13d97bab357 Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 18 Jul 2018 08:27:26 -0700 Subject: [PATCH] Set activated to zero if no values passed for active user --- app/Http/Controllers/UsersController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/UsersController.php b/app/Http/Controllers/UsersController.php index dfd790fdf6..24bc859204 100755 --- a/app/Http/Controllers/UsersController.php +++ b/app/Http/Controllers/UsersController.php @@ -275,7 +275,7 @@ class UsersController extends Controller $user->two_factor_optin = $request->input('two_factor_optin') ?: 0; $user->locale = $request->input('locale'); $user->employee_num = $request->input('employee_num'); - $user->activated = $request->input('activated', $user->activated); + $user->activated = $request->input('activated', 0); $user->jobtitle = $request->input('jobtitle', null); $user->phone = $request->input('phone'); $user->location_id = $request->input('location_id', null);