File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -287,7 +287,6 @@ public function postEdit($id = null)
287287 $ user ->first_name = Input::get ('first_name ' );
288288 $ user ->last_name = Input::get ('last_name ' );
289289 $ user ->employee_num = Input::get ('employee_num ' );
290- $ user ->email = Input::get ('email ' );
291290 $ user ->activated = Input::get ('activated ' , $ user ->activated );
292291 $ user ->permissions = Input::get ('permissions ' );
293292 $ user ->jobtitle = Input::get ('jobtitle ' );
@@ -310,6 +309,11 @@ public function postEdit($id = null)
310309 $ user ->password = $ password ;
311310 }
312311
312+ // Do we want to update the user email?
313+ if (!Config::get ('app.lock_passwords ' )) {
314+ $ user ->email = Input::get ('email ' );
315+ }
316+
313317 // Get the current user groups
314318 $ userGroups = $ user ->groups ()->lists ('group_id ' , 'group_id ' );
315319
You can’t perform that action at this time.
0 commit comments