do trim() on login and password
This commit is contained in:
parent
f794e82cc3
commit
97163e1fb8
@ -1140,7 +1140,7 @@ public class MainActivity extends FragmentActivity implements FeedsFragment.OnFe
|
|||||||
|
|
||||||
logout();
|
logout();
|
||||||
|
|
||||||
if (m_prefs.getString("ttrss_url", "").length() == 0) {
|
if (m_prefs.getString("ttrss_url", "").trim().length() == 0) {
|
||||||
|
|
||||||
setLoadingStatus(R.string.login_need_configure, false);
|
setLoadingStatus(R.string.login_need_configure, false);
|
||||||
|
|
||||||
@ -1151,8 +1151,8 @@ public class MainActivity extends FragmentActivity implements FeedsFragment.OnFe
|
|||||||
HashMap<String,String> map = new HashMap<String,String>() {
|
HashMap<String,String> map = new HashMap<String,String>() {
|
||||||
{
|
{
|
||||||
put("op", "login");
|
put("op", "login");
|
||||||
put("user", m_prefs.getString("login", null));
|
put("user", m_prefs.getString("login", "").trim());
|
||||||
put("password", m_prefs.getString("password", null));
|
put("password", m_prefs.getString("password", "").trim());
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user