Commit e8b8de9d authored by Sajal Narang's avatar Sajal Narang

Clear password on login attempt

parent 56679c1c
......@@ -114,6 +114,8 @@ public class LoginActivity extends AppCompatActivity {
public void onClick(View view) {
String username = usernameEditText.getText().toString();
String password = passwordEditText.getText().toString();
passwordEditText.setText("");
passwordLayout.setError(null);
if (username.equals("")) {
usernameLayout.setError(USERNAME_ERROR);
return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment