Skip to content

Commit 40df115

Browse files
committed
Fix unencoded email address during login
1 parent 73c70f1 commit 40df115

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/org/noroomattheinn/tesla/Tesla.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ private boolean login(String username, String password, boolean remember) {
136136
// OK, now complete the login by doing a POST with the username
137137
// and password. This sets the user_credentials cookie
138138
FormContent fc = Resty.form(
139-
"user_session[email]=" + username +
139+
"user_session[email]=" + Resty.enc(username) +
140140
"&user_session[password]=" + Resty.enc(password));
141141
text = api.text(endpoint("login"), fc);
142142

0 commit comments

Comments
 (0)