feat(user migration): user migration to the new app with a default password that will force reset
This commit is contained in:
10
app/src/internal/system/controller/modules/baseModules.ts
Normal file
10
app/src/internal/system/controller/modules/baseModules.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { readFileSync } from "fs";
|
||||
import path from "path";
|
||||
import { fileURLToPath } from "url";
|
||||
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = path.dirname(__filename);
|
||||
|
||||
export const baseModules = async () => {
|
||||
const modulePath = path.resolve(__dirname, "./modules.json");
|
||||
};
|
||||
30
app/src/internal/system/controller/modules/modules.json
Normal file
30
app/src/internal/system/controller/modules/modules.json
Normal file
@@ -0,0 +1,30 @@
|
||||
[
|
||||
{
|
||||
"name": "plantToken",
|
||||
"value": "test3",
|
||||
"description": "The plant token for the plant IE: test3 or usday1",
|
||||
"moduleName": "system",
|
||||
"roles": ["systemAdmin"]
|
||||
},
|
||||
{
|
||||
"name": "dbServer",
|
||||
"value": "usmcd1vms036",
|
||||
"description": "What is the db server",
|
||||
"moduleName": "system",
|
||||
"roles": ["systemAdmin"]
|
||||
},
|
||||
{
|
||||
"name": "v1Server",
|
||||
"value": "localhost",
|
||||
"description": "What is the port the v1app is on",
|
||||
"moduleName": "system",
|
||||
"roles": ["systemAdmin"]
|
||||
},
|
||||
{
|
||||
"name": "v1Port",
|
||||
"value": "3000",
|
||||
"description": "What is the port the v1app is on",
|
||||
"moduleName": "system",
|
||||
"roles": ["systemAdmin"]
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user