diff --git a/.idea/libraries/Dart_Packages.xml b/.idea/libraries/Dart_Packages.xml index 5b21219..ff3c8ed 100644 --- a/.idea/libraries/Dart_Packages.xml +++ b/.idea/libraries/Dart_Packages.xml @@ -2,817 +2,721 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.idea/libraries/Dart_SDK.xml b/.idea/libraries/Dart_SDK.xml index cb79f3d..008f0f6 100644 --- a/.idea/libraries/Dart_SDK.xml +++ b/.idea/libraries/Dart_SDK.xml @@ -1,25 +1,25 @@ - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + diff --git a/Sources/dafl_project_flutter/assets/logs.txt b/Sources/dafl_project_flutter/assets/logs.txt index 7d70a00..6f0fab9 100644 --- a/Sources/dafl_project_flutter/assets/logs.txt +++ b/Sources/dafl_project_flutter/assets/logs.txt @@ -1,4 +1,4 @@ -postgres -mdpDaflBd -89.83.54.48 -BD-DaflMusic \ No newline at end of file +avnadmin +AVNS_MA4OWhqM3cOMSwKXlzw +pg-206a2fcd-the-3c42.aivencloud.com +Bd-DaflMusic \ No newline at end of file diff --git a/Sources/dafl_project_flutter/lib/services/database/database_connexion.dart b/Sources/dafl_project_flutter/lib/services/database/database_connexion.dart index 7e1ff2d..7e3ab3b 100644 --- a/Sources/dafl_project_flutter/lib/services/database/database_connexion.dart +++ b/Sources/dafl_project_flutter/lib/services/database/database_connexion.dart @@ -39,7 +39,7 @@ class DatabaseConnexion { try { var uri = - 'postgres://$_psqlUser:$_psqlPswd@$_psqlHost:5442/$_psqlDataBase'; + 'postgres://$_psqlUser:$_psqlPswd@$_psqlHost:15739/$_psqlDataBase?sslmode=require'; return connect(uri); } catch (e) { diff --git a/Sources/dafl_project_flutter/lib/services/database/database_loader.dart b/Sources/dafl_project_flutter/lib/services/database/database_loader.dart index e7b4371..828af33 100644 --- a/Sources/dafl_project_flutter/lib/services/database/database_loader.dart +++ b/Sources/dafl_project_flutter/lib/services/database/database_loader.dart @@ -11,7 +11,7 @@ class DatabaseLoader implements Loader { final connection = await DatabaseConnexion.initConnexion(); var queryResult = await connection .query( - 'select username from utilisateur where username = @username AND password = @password', + 'select idDafl from users where idDafl = @username AND password = @password', {'username': username, 'password': password}) .toList() .then((result) { @@ -25,7 +25,6 @@ class DatabaseLoader implements Loader { .whenComplete(() { connection.close(); }); - return queryResult; } } diff --git a/Sources/dafl_project_flutter/lib/services/database/database_saver.dart b/Sources/dafl_project_flutter/lib/services/database/database_saver.dart index 6768a50..7c2a13a 100644 --- a/Sources/dafl_project_flutter/lib/services/database/database_saver.dart +++ b/Sources/dafl_project_flutter/lib/services/database/database_saver.dart @@ -8,7 +8,7 @@ class DatabaseSaver implements Saver { final connection = await DatabaseConnexion.initConnexion(); connection.execute( - 'insert into utilisateur (username, password) values (@username, @password)', + 'insert into users (idDafl, password) values (@username, @password)', {'id': '', 'username': idDafl, 'password': passw}).whenComplete(() { connection.close(); }); diff --git a/Sources/dafl_project_flutter/lib/services/database/database_searcher.dart b/Sources/dafl_project_flutter/lib/services/database/database_searcher.dart index 5af05fc..0798a08 100644 --- a/Sources/dafl_project_flutter/lib/services/database/database_searcher.dart +++ b/Sources/dafl_project_flutter/lib/services/database/database_searcher.dart @@ -10,7 +10,7 @@ class DatabaseSearcher implements Searcher { final connection = await DatabaseConnexion.initConnexion(); bool queryResult = await connection - .query('select * from utilisateur where username = @username', + .query('select * from users where idDafl = @username', {'username': username}) .toList() .then((rows) {