Create cookie-based login and authentication system

This commit is contained in:
Alex Cabal 2022-07-10 18:58:55 -05:00
parent 45221365b5
commit 0bc3dc3830
46 changed files with 528 additions and 195 deletions

View file

@ -47,6 +47,7 @@ if(sizeof($expiredPatrons) > 0){
foreach($expiredPatrons as $patron){
Db::Query('update Patrons set Ended = ? where UserId = ?', [$now, $patron->UserId]);
Db::Query('update Benefits set CanAccessFeeds = false, CanVote = false, CanBulkDownload = false where UserId = ?', [$patron->UserId]);
// Email the patron to notify them their term has ended
// Is the patron a recurring subscriber?