WIP: Next major version - AthenaHR v2 #1

Draft
miguel456 wants to merge 46 commits from develop into main
770 changed files with 3768 additions and 3758 deletions
Showing only changes of commit 2062cd247e - Show all commits

View File

@@ -21,7 +21,8 @@ class PasswordExpirationMiddleware
{
if (Auth::check()) {
$sinceUpdate = Carbon::parse(Auth::user()->password_last_updated)->diffInDays(now());
$updateThreshold = Options::getOption('password_expiry');
$updateThreshold = (int) Options::getOption('password_expiry');
if ($updateThreshold !== 0 && $sinceUpdate > $updateThreshold) {
session()->put('passwordExpired', true);