1
0
mirror of https://github.com/RipMeApp/ripme.git synced 2025-08-23 22:14:06 +02:00

Custom Login possible now

This commit is contained in:
MrPlaygon
2019-03-01 18:26:16 +01:00
parent 7e7421d8bc
commit 3781737786

View File

@@ -157,6 +157,8 @@ public class DeviantartRipper extends AbstractHTMLRipper {
*/
private void login() throws IOException {
String customUsername = Utils.getConfigString("DeviantartCustomLoginUsername", this.username);
String customPassword = Utils.getConfigString("DeviantartCustomLoginPassword", this.password);
try {
String dACookies = Utils.getConfigString(utilsKey, null);
updateCookie(dACookies != null ? deserialize(dACookies) : null);
@@ -183,8 +185,8 @@ public class DeviantartRipper extends AbstractHTMLRipper {
// Build Login Data
HashMap<String, String> loginData = new HashMap<String, String>();
loginData.put("challenge", "");
loginData.put("username", this.username);
loginData.put("password", this.password);
loginData.put("username", customUsername);
loginData.put("password", customPassword);
loginData.put("remember_me", "1");
loginData.put("validate_token", token);
loginData.put("validate_key", key);