Compare commits
2
Commits
14f9dc5ec6
...
50675e0bbd
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
50675e0bbd | ||
|
|
d9c4bae6a4 |
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -2,4 +2,4 @@ public class Main {
|
||||
public static void main(String[] args) {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user