Implement token refresh logic and add refreshkey to user management

This commit is contained in:
“VeLiTi”
2026-02-05 14:00:36 +01:00
parent b34733f9b7
commit c4cb99b945
5 changed files with 138 additions and 0 deletions

View File

@@ -919,5 +919,7 @@ UPDATE equipment
SET warranty_date = DATE_ADD(warranty_date, INTERVAL 1 YEAR)
WHERE warranty_date IS NOT NULL;
alter table users add refreshkey varchar(255);
SET FOREIGN_KEY_CHECKS=1;

View File

@@ -1725,6 +1725,7 @@ function getProfile($profile, $permission){
// Always allowed collections: [collection => allowed_actions_string]
$always_allowed = [
'com_log' => 'CRU',
'token_refresh' => 'R',
'application' => 'CRU',
'user_roles' => 'R',
'user_role_assignments' => 'R',