Skip to content

Commit 5160e79

Browse files
committed
fix:move check of the adminforth secret from config validator to the discover databases[2]
AdminForth/1706/fix-bundle-now-command
1 parent f81ae70 commit 5160e79

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

adminforth/modules/configValidator.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1255,13 +1255,6 @@ export default class ConfigValidator implements IConfigValidator {
12551255
throw new Error(`Invalid AdminForth config: ${errors.join(', ')}`);
12561256
}
12571257

1258-
const adminforthSecret = process.env.ADMINFORTH_SECRET;
1259-
if (!adminforthSecret) {
1260-
throw new Error(`ADMINFORTH_SECRET environment not set
1261-
Please set ADMINFORTH_SECRET environment variable to a random string to secure your admin panel.
1262-
ADMINFORTH_SECRET variable is used to sign JWT tokens
1263-
`);
1264-
}
12651258

12661259
this.adminforth.config = newConfig as AdminForthConfig;
12671260
}

0 commit comments

Comments
 (0)