store loginUid on login
This commit is contained in:
@@ -469,11 +469,11 @@ public class LoginActivity extends AppCompatActivity implements View.OnClickList
|
|||||||
if (response.isSuccessful()) {
|
if (response.isSuccessful()) {
|
||||||
|
|
||||||
if (response.code() == 200) {
|
if (response.code() == 200) {
|
||||||
|
|
||||||
tinyDb.remove("loginPass");
|
|
||||||
tinyDb.putBoolean("loggedInMode", true);
|
tinyDb.putBoolean("loggedInMode", true);
|
||||||
assert userDetails != null;
|
assert userDetails != null;
|
||||||
tinyDb.putString(userDetails.getLogin() + "-token", loginToken_);
|
tinyDb.putString(userDetails.getLogin() + "-token", loginToken_);
|
||||||
|
tinyDb.putString("loginUid", userDetails.getLogin());
|
||||||
|
|
||||||
enableProcessButton();
|
enableProcessButton();
|
||||||
loginButton.setText(R.string.btnLogin);
|
loginButton.setText(R.string.btnLogin);
|
||||||
|
Reference in New Issue
Block a user