Compare commits
No commits in common. "50675e0bbd4345a233655dd2f8f75e125346ea42" and "14f9dc5ec64e542f483cf0e6c49fa0a36cb8c239" have entirely different histories.
50675e0bbd
...
14f9dc5ec6
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user