|
|
@@ -1,8 +1,4 @@ |
|
|
|
import java.io.BufferedReader; |
|
|
|
import java.io.FileReader; |
|
|
|
import java.io.IOException; |
|
|
|
import java.util.ArrayList; |
|
|
|
|
|
|
|
import assets.Helpers; |
|
|
|
|
|
|
|
public class Credentials { |
|
|
|
|
|
|
@@ -19,29 +15,37 @@ public class Credentials { |
|
|
|
|
|
|
|
public boolean valid(){ |
|
|
|
|
|
|
|
/* String line; |
|
|
|
ArrayList<String> result = new ArrayList<String>(); |
|
|
|
try { |
|
|
|
FileReader fr = new FileReader(passwd.txt); |
|
|
|
BufferedReader br = new BufferedReader(fr); |
|
|
|
while ((line = br.readLine()) != null) |
|
|
|
result.add(line); |
|
|
|
br.close(); |
|
|
|
} |
|
|
|
catch (IOException e) { |
|
|
|
e.printStackTrace(); |
|
|
|
String[] lines = Helpers.readTextdatei("src/assets/passwd"); |
|
|
|
String tmp = ""; |
|
|
|
String name = ""; |
|
|
|
String pw = ""; |
|
|
|
for(int i=0; i<lines.length; i++) { |
|
|
|
|
|
|
|
if(i % 2 == 0){ |
|
|
|
name = lines[i]; |
|
|
|
System.out.println( "NAME: " + name); |
|
|
|
|
|
|
|
}else { |
|
|
|
pw= lines[i]; |
|
|
|
System.out.println(pw); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
compare(name, pw); |
|
|
|
|
|
|
|
} |
|
|
|
return result.toArray(new String[]{}); |
|
|
|
*/ |
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
private void compare(String name, String pw) { |
|
|
|
|
|
|
|
|
|
|
|
if() |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|