Force users to change password
This commit applies the password_expiration setting to all users. Users won't be able to do anything other than update password until it's done.
This commit is contained in:
@@ -172,6 +172,8 @@ class UserController extends Controller
|
||||
|
||||
if (! is_null($user)) {
|
||||
$user->password = Hash::make($request->newPassword);
|
||||
$user->password_last_updated = now();
|
||||
|
||||
$user->save();
|
||||
|
||||
Log::info('User '.$user->name.' has changed their password', [
|
||||
|
Reference in New Issue
Block a user