Browse Source

Test 2

master
Bruno Klasing 1 year ago
parent
commit
47a7b92917
1 changed files with 13 additions and 1 deletions
  1. 13
    1
      src/Credentials.java

+ 13
- 1
src/Credentials.java 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;
}

Loading…
Cancel
Save