|
|
@@ -111,9 +111,16 @@ public class SignUpModel extends Model {
|
|
|
}
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
+ * 핀 저장
|
|
|
+ *
|
|
|
+ * @param pin
|
|
|
+ */
|
|
|
public void savePin(String pin) {
|
|
|
try {
|
|
|
- SuperModel.getInstance().getPreferences().setEncryptedPin(StringUtil.convertToSHA256(StringUtil.convertToMD5(pin)));
|
|
|
+ String encryptedPin = StringUtil.convertToSHA256(StringUtil.convertToMD5(pin));
|
|
|
+ Log.i("APP# SignUpModel | savePin", "| pin: " + pin + ", encryptedPin: " + encryptedPin);
|
|
|
+ SuperModel.getInstance().getPreferences().setEncryptedPin(encryptedPin);
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
@@ -154,4 +161,19 @@ public class SignUpModel extends Model {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 모바일 인증 했음을 표시;
|
|
|
+ */
|
|
|
+ public void checkMobileAuthorized() {
|
|
|
+ signUpBean.setAuthorized(true);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 모바일 인증 했음 확인
|
|
|
+ *
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public boolean isMobileAuthorized() {
|
|
|
+ return signUpBean.isAuthorized();
|
|
|
+ }
|
|
|
}
|