|
@@ -72,8 +72,13 @@ public class LoginActivity extends AppCompatActivity {
|
|
// etPasswd.setText("sysedps!@#");
|
|
// etPasswd.setText("sysedps!@#");
|
|
|
|
|
|
//의사
|
|
//의사
|
|
- etId.setText("105435");
|
|
|
|
- etPasswd.setText("sysedps!@#");
|
|
|
|
|
|
+// etId.setText("105435");
|
|
|
|
+// etPasswd.setText("sysedps!@#");
|
|
|
|
+
|
|
|
|
+ etId.setText("107810");
|
|
|
|
+ etPasswd.setText("3740asdf-");
|
|
|
|
+
|
|
|
|
+
|
|
|
|
|
|
// 산부인과 의사
|
|
// 산부인과 의사
|
|
// etId.setText("104012");
|
|
// etId.setText("104012");
|
|
@@ -97,8 +102,13 @@ public class LoginActivity extends AppCompatActivity {
|
|
|
|
|
|
private void loginProcess() {
|
|
private void loginProcess() {
|
|
userId = etId.getText().toString();
|
|
userId = etId.getText().toString();
|
|
|
|
+ userPw = etPasswd.getText().toString().trim();
|
|
|
|
+ String md5Pw = "";
|
|
|
|
+ String sha256Pw = "";
|
|
try {
|
|
try {
|
|
- userPw = Util.md5(etPasswd.getText().toString());
|
|
|
|
|
|
+ md5Pw = Util.md5(userPw);
|
|
|
|
+ sha256Pw = Util.sha256Encrypt(userPw);
|
|
|
|
+
|
|
} catch (NoSuchAlgorithmException e) {
|
|
} catch (NoSuchAlgorithmException e) {
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
} catch (UnsupportedEncodingException e) {
|
|
} catch (UnsupportedEncodingException e) {
|
|
@@ -113,7 +123,8 @@ public class LoginActivity extends AppCompatActivity {
|
|
loadingProgress.show();
|
|
loadingProgress.show();
|
|
HashMap<String, String> mData = new HashMap<String, String>();
|
|
HashMap<String, String> mData = new HashMap<String, String>();
|
|
mData.put("userid", userId);
|
|
mData.put("userid", userId);
|
|
- mData.put("pwd", userPw);
|
|
|
|
|
|
+ mData.put("md5Pw", md5Pw);
|
|
|
|
+ mData.put("sha256Pw", sha256Pw);
|
|
|
|
|
|
HttpConRunnable runnable = new HttpConRunnable(ConsentConfig.HOST_HOSPITAL, mData, ConsentConfig.DO_LOGIN, callBack);
|
|
HttpConRunnable runnable = new HttpConRunnable(ConsentConfig.HOST_HOSPITAL, mData, ConsentConfig.DO_LOGIN, callBack);
|
|
Thread thread = new Thread(runnable);
|
|
Thread thread = new Thread(runnable);
|
|
@@ -176,7 +187,8 @@ public class LoginActivity extends AppCompatActivity {
|
|
String dutplceDeptNm = mm.get("dutplcedeptnm").trim();
|
|
String dutplceDeptNm = mm.get("dutplcedeptnm").trim();
|
|
String jobKindCd = mm.get("jobkindcd").trim();
|
|
String jobKindCd = mm.get("jobkindcd").trim();
|
|
String jobKindNm = mm.get("jobkindnm").trim();
|
|
String jobKindNm = mm.get("jobkindnm").trim();
|
|
- String mobile = mm.get("mobile").trim();
|
|
|
|
|
|
+ String mobile = (mm.get("mobile") == null) ? "I" : mm.get("mobile").trim();
|
|
|
|
+
|
|
|
|
|
|
jobKindCd = Util.plusZero2("4", Integer.parseInt(jobKindCd));
|
|
jobKindCd = Util.plusZero2("4", Integer.parseInt(jobKindCd));
|
|
userLoginDeptLists.add(new UserLoginDeptList(emplNo, name, unitNm, dutplcedeptCd, dutplceDeptNm, jobKindCd, jobKindNm, mobile));
|
|
userLoginDeptLists.add(new UserLoginDeptList(emplNo, name, unitNm, dutplcedeptCd, dutplceDeptNm, jobKindCd, jobKindNm, mobile));
|