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
     public void showLoginSuccess(DataUser dataUser) {
67
     public void showLoginSuccess(DataUser dataUser) {
68
         if (dataUser.isSuccess()){
68
         if (dataUser.isSuccess()){
69
             session.setUserLogin();
69
             session.setUserLogin();
70
-            session.setUserId(Integer.valueOf(dataUser.getIdUser()));
70
+            session.setUserId(Integer.valueOf(dataUser.getIdKaryawan()));
71
             session.setUserName(dataUser.getUsername());
71
             session.setUserName(dataUser.getUsername());
72
             session.setEmployeeName(dataUser.getNamaKaryawan());
72
             session.setEmployeeName(dataUser.getNamaKaryawan());
73
             session.setUserSid(dataUser.getKodeKaryawan());
73
             session.setUserSid(dataUser.getKodeKaryawan());