Skip to content

Commit

Permalink
URLencode password
Browse files Browse the repository at this point in the history
  • Loading branch information
seime committed Nov 25, 2023
1 parent 86eda91 commit ebc3e69
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
*/
package no.seime.openhab.binding.august.internal.dto;

import java.net.URLEncoder;
import java.nio.charset.Charset;

import com.google.gson.annotations.SerializedName;

/**
Expand All @@ -30,7 +33,7 @@ public class GetSessionRequest implements AbstractRequest {

public GetSessionRequest(String loginId, String password, String installId) {
this.loginId = "email:" + loginId;
this.password = password;
this.password = URLEncoder.encode(password, Charset.defaultCharset());
this.installId = installId;
}

Expand Down

0 comments on commit ebc3e69

Please sign in to comment.