Skip to content

Commit

Permalink
Fix unencoded email address during login
Browse files Browse the repository at this point in the history
  • Loading branch information
jpasqua committed Sep 26, 2013
1 parent 73c70f1 commit 40df115
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/noroomattheinn/tesla/Tesla.java
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ private boolean login(String username, String password, boolean remember) {
// OK, now complete the login by doing a POST with the username
// and password. This sets the user_credentials cookie
FormContent fc = Resty.form(
"user_session[email]=" + username +
"user_session[email]=" + Resty.enc(username) +
"&user_session[password]=" + Resty.enc(password));
text = api.text(endpoint("login"), fc);

Expand Down

0 comments on commit 40df115

Please sign in to comment.