security updates

This commit is contained in:
2024-06-06 15:13:53 -05:00
parent 8f8797fbe6
commit e1ab786140
8 changed files with 157 additions and 115 deletions
+4 -4
View File
@@ -20,11 +20,11 @@ var parameters = Argon2Parameters(
);
final postgres = PostgreSQLConnection(
Platform.environment['POSTGRES_ADDRESS']!,
int.parse(Platform.environment['POSTGRES_PORT']!),
Platform.environment['JOBLINK_POSTGRES_ADDRESS']!,
int.parse(Platform.environment['JOBLINK_POSTGRES_PORT']!),
'fbla',
username: Platform.environment['POSTGRES_USERNAME'],
password: Platform.environment['POSTGRES_PASSWORD'],
username: Platform.environment['JOBLINK_POSTGRES_USERNAME'],
password: Platform.environment['JOBLINK_POSTGRES_PASSWORD'],
);
Future<void> main() async {
+5 -5
View File
@@ -11,7 +11,7 @@ import 'package:http/http.dart' as http;
import 'package:argon2/argon2.dart';
SecretKey secretKey = SecretKey(Platform.environment['SECRET_KEY']!);
SecretKey secretKey = SecretKey(Platform.environment['JOBLINK_SECRET_KEY']!);
enum BusinessType {
food,
@@ -107,11 +107,11 @@ const _port = 8000;
final postgres = PostgreSQLConnection(
Platform.environment['POSTGRES_ADDRESS']!,
int.parse(Platform.environment['POSTGRES_PORT']!),
Platform.environment['JOBLINK_POSTGRES_ADDRESS']!,
int.parse(Platform.environment['JOBLINK_POSTGRES_PORT']!),
'fbla',
username: Platform.environment['POSTGRES_USERNAME'],
password: Platform.environment['POSTGRES_PASSWORD'],
username: Platform.environment['JOBLINK_POSTGRES_USERNAME'],
password: Platform.environment['JOBLINK_POSTGRES_PASSWORD'],
);