Compare commits

..

No commits in common. "50675e0bbd4345a233655dd2f8f75e125346ea42" and "14f9dc5ec64e542f483cf0e6c49fa0a36cb8c239" have entirely different histories.

2 changed files with 4 additions and 4 deletions

View File

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

View File

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