Skip to content

Commit

Permalink
Fix #897: Username is shown as null on login (#915)
Browse files Browse the repository at this point in the history
  • Loading branch information
etlhsu authored and Saksham Handu committed Nov 11, 2018
1 parent aa20e9f commit e203fd6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/src/main/java/org/mifos/mobilebanking/models/User.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ data class User (

var userId: Long = 0,
var isAuthenticated: Boolean = false,
var userName: String? = null,
var username: String? = null,
var base64EncodedAuthenticationKey: String? = null,
var permissions: List<String> = ArrayList()
)
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public void onError(Throwable e) {
@Override
public void onNext(User user) {
if (user != null) {
final String userName = user.getUserName();
final String userName = user.getUsername();
final long userID = user.getUserId();
final String authToken = Constants.BASIC +
user.getBase64EncodedAuthenticationKey();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public void testLogin() throws Exception {
presenter.login("selfservice", "password");

verify(view).showProgress();
verify(view).onLoginSuccess(user.getUserName());
verify(view).onLoginSuccess(user.getUsername());
}

@Test
Expand Down

0 comments on commit e203fd6

Please sign in to comment.