From cb6ce4ebb9587cec98ae2b6c50b64a6abaa4fd62 Mon Sep 17 00:00:00 2001 From: Ethan Hsu Date: Fri, 26 Oct 2018 11:54:27 -0700 Subject: [PATCH] Fix #897: Username is shown as null on login --- app/src/main/java/org/mifos/mobilebanking/models/User.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/org/mifos/mobilebanking/models/User.kt b/app/src/main/java/org/mifos/mobilebanking/models/User.kt index bb0e2826d9..cdc5dc32a6 100644 --- a/app/src/main/java/org/mifos/mobilebanking/models/User.kt +++ b/app/src/main/java/org/mifos/mobilebanking/models/User.kt @@ -1,5 +1,6 @@ package org.mifos.mobilebanking.models +import com.google.gson.annotations.SerializedName import java.util.ArrayList /** @@ -11,6 +12,7 @@ data class User ( var userId: Long = 0, var isAuthenticated: Boolean = false, + @SerializedName(value = "username") var userName: String? = null, var base64EncodedAuthenticationKey: String? = null, var permissions: List = ArrayList()