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() {
|
||||
|
||||
boolean usernameGiven = false;
|
||||
|
||||
String hashData;
|
||||
|
||||
//iterator over file
|
||||
for (String line:
|
||||
Helpers.readTextdatei("data/passwd.txt")) {
|
||||
if(login.equals(line)) {
|
||||
if(login == line) {
|
||||
usernameGiven = true;
|
||||
continue;
|
||||
}
|
||||
if(usernameGiven && hash.equals(line)) {
|
||||
if(usernameGiven && hash == 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