This commit is contained in:
Bruno Klasing 2022-11-10 16:11:23 +01:00
parent 476a5b6ed1
commit 47a7b92917

View File

@ -11,9 +11,21 @@ public class Credentials {
}
public boolean valid() {
boolean usernameGiven = false;
String hashData;
//iterator over file
for (String line:
Helpers.readTextdatei("data/passwd.txt")) {
System.out.println(line);
if(login == line) {
usernameGiven = true;
continue;
}
if(usernameGiven && hash == line) {
return true;
}
}
return false;
}