Compare commits

...

2 Commits

Author SHA1 Message Date
50675e0bbd Merge remote-tracking branch 'origin/master' 2022-11-10 16:20:51 +01:00
d9c4bae6a4 Test 3 2022-11-10 16:20:44 +01:00
2 changed files with 4 additions and 4 deletions

View File

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

View File

@ -2,4 +2,4 @@ public class Main {
public static void main(String[] args) {
}
}
}