Set activated to zero if no values passed for active user

This commit is contained in:
snipe 2018-07-18 08:27:26 -07:00
parent 7dc070ec2c
commit d309f67df0

View file

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