Konstruktor
This commit is contained in:
parent
290941ad22
commit
f7f967324c
@ -3,13 +3,15 @@ public class Credentials {
|
|||||||
private String hash;
|
private String hash;
|
||||||
|
|
||||||
public Credentials(String login, String password) {
|
public Credentials(String login, String password) {
|
||||||
|
this.hash = Helpers.getHash(password);
|
||||||
|
this.login = login;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean valid() {
|
||||||
for (String line:
|
for (String line:
|
||||||
Helpers.readTextdatei("data/passwd.txt")) {
|
Helpers.readTextdatei("data/passwd.txt")) {
|
||||||
System.out.println(line);
|
System.out.println(line);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
public boolean valid() {
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user