mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 12:30:49 +08:00
mangement add oauth
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user