test without twofa
continuous-integration/drone/push Build is passing Details

adminDb
remrem 3 years ago
parent ea1422ebe0
commit f6098dfae3

@ -59,7 +59,8 @@ class API {
if (await checkRequiredFields(required, body)) {
AccountsToPostgres db = AccountsToPostgres();
List<String> 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();

@ -25,15 +25,15 @@ class AccountsToPostgres {
}
@override
void create(
String email, String hash, String salt, List<String> twoFaStr) async {
void create(String email, String hash,
String salt /*, List<String> 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");
}

Loading…
Cancel
Save