Browse Source

-Fixing idUser to idEmployee

ilhamitubagoes 4 years ago
parent
commit
4c0a1f046d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/src/main/java/com/fusi24/rfid/ui/login/LoginActivity.java

+ 1 - 1
app/src/main/java/com/fusi24/rfid/ui/login/LoginActivity.java

@@ -67,7 +67,7 @@ public class LoginActivity extends LFScanProcessing implements LoginView {
67 67
     public void showLoginSuccess(DataUser dataUser) {
68 68
         if (dataUser.isSuccess()){
69 69
             session.setUserLogin();
70
-            session.setUserId(Integer.valueOf(dataUser.getIdUser()));
70
+            session.setUserId(Integer.valueOf(dataUser.getIdKaryawan()));
71 71
             session.setUserName(dataUser.getUsername());
72 72
             session.setEmployeeName(dataUser.getNamaKaryawan());
73 73
             session.setUserSid(dataUser.getKodeKaryawan());