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);