Skip to content

Commit

Permalink
Ensure edited date is updated
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesDPC committed Aug 29, 2023
1 parent de9191f commit fcf4ae2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Handler/OktaLoginHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
use SilverStripe\Control\Controller;
use SilverStripe\Core\Config\Configurable;
use SilverStripe\Core\Injector\Injector;
use SilverStripe\ORM\FieldType\DBDatetime;
use SilverStripe\ORM\ValidationException;
use SilverStripe\Security\IdentityStore;
use SilverStripe\Security\Member;
Expand Down Expand Up @@ -317,6 +318,7 @@ protected function findOrCreateMember(AccessToken $token, AbstractProvider $prov
);
}
$passport->MemberID = $member->ID;
$passport->LastEdited = DBDatetime::now()->Rfc2822();
$passport->write();
}

Expand Down

0 comments on commit fcf4ae2

Please sign in to comment.