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:
2021-01-06 05:03:38 +00:00
parent aa2bfac3e5
commit 14a8e9e9d5
8 changed files with 178 additions and 38 deletions

View File

@@ -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', [