store plaintext secret key in .env, hash at startup

This commit is contained in:
dmit.b
2026-06-25 16:43:49 +03:00
parent 9644b64a90
commit 8df9af86e6
4 changed files with 14 additions and 10 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ void main() {
setUpAll(() async {
final env = DotEnv();
env.load(['bin/.env']);
registrationSecretKey = 'FtracKer*1405.';
registrationSecretKey = env['REGISTRATION_SECRET_KEY'] ?? 'FtracKer*1405.';
stdout.writeln("Starting server...");
p = await Process.start(