Test 3
This commit is contained in:
parent
017e5c06ce
commit
d9c4bae6a4
@ -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;
|
||||
}
|
||||
|
||||
|
@ -2,4 +2,4 @@ public class Main {
|
||||
public static void main(String[] args) {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user