security updates
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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'],
|
||||
);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user