diff --git a/lib/api/api.dart b/lib/api/api.dart index 9b378b5..709387e 100644 --- a/lib/api/api.dart +++ b/lib/api/api.dart @@ -59,7 +59,8 @@ class API { if (await checkRequiredFields(required, body)) { AccountsToPostgres db = AccountsToPostgres(); List twofa = body[required[3]]; - db.create(body[required[0]], body[required[1]], body[required[2]], twofa); + db.create( + body[required[0]], body[required[1]], body[required[2]] /*, twofa*/); return Response.ok('true'); } else { return Response.badRequest(); diff --git a/lib/database/accounts_to_postgres.dart b/lib/database/accounts_to_postgres.dart index bf82f47..7633bf2 100644 --- a/lib/database/accounts_to_postgres.dart +++ b/lib/database/accounts_to_postgres.dart @@ -25,15 +25,15 @@ class AccountsToPostgres { } @override - void create( - String email, String hash, String salt, List twoFaStr) async { + void create(String email, String hash, + String salt /*, List twoFaStr*/) async { connection.query( "INSERT INTO \"Account\" VALUES(@id,@hash,@salt,@twofa,@passwords)", substitutionValues: { "id": email, "hash": hash, - "salt": salt, - "twofa": twoFaStr + "salt": salt /*, + "twofa": twoFaStr*/ }); print("Account succesfully created"); }