mangement add oauth

This commit is contained in:
xiaomlove
2024-03-11 02:12:17 +08:00
parent a2b8ef3c50
commit 8903f10286
19 changed files with 455 additions and 7 deletions

View File

@@ -1106,6 +1106,27 @@ function docleanup($forceAll = 0, $printProgress = false) {
// printProgress($log);
// }
sql_query("delete from oauth_auth_codes where expires_at <= '$nowStr'");
$log = "delete oauth auth code expired";
do_log($log);
if ($printProgress) {
printProgress($log);
}
sql_query("delete from oauth_access_tokens where expires_at <= '$nowStr'");
$log = "delete oauth access token expired";
do_log($log);
if ($printProgress) {
printProgress($log);
}
sql_query("delete from oauth_refresh_tokens where expires_at <= '$nowStr'");
$log = "delete oauth refresh token expired";
do_log($log);
if ($printProgress) {
printProgress($log);
}
$log = 'Full cleanup is done';
do_log($log);
if ($printProgress) {

View File

@@ -1,6 +1,6 @@
<?php
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.8.9');
defined('RELEASE_DATE') || define('RELEASE_DATE', '2024-03-08');
defined('RELEASE_DATE') || define('RELEASE_DATE', '2024-03-11');
defined('IN_TRACKER') || define('IN_TRACKER', false);
defined('PROJECTNAME') || define("PROJECTNAME","NexusPHP");
defined('NEXUSPHPURL') || define("NEXUSPHPURL","https://nexusphp.org");