shjung 2 tahun lalu
induk
melakukan
55a048cd27
1 mengubah file dengan 1 tambahan dan 10 penghapusan
  1. 1 10
      src/main/java/com/its/op/entity/its/oper/TbWwwMember.java

+ 1 - 10
src/main/java/com/its/op/entity/its/oper/TbWwwMember.java

@@ -83,18 +83,9 @@ public class TbWwwMember implements Serializable {
 
     public void setPassword(String password) {
         if (!this.pwd.equals(password)) {
-            this.pwd = encodePassword(password);
+            this.pwd = SHA256Util.encrypt(password);
         }
     }
-    public String encodePassword(String password) {
-        String encodePassword = "";
-        try {
-            encodePassword = SHA256Util.encrypt(password);
-        } catch (RuntimeException e) {
-            encodePassword = this.pwd;
-        }
-        return encodePassword;
-    }
     public void setAccountLockFree() {
         this.loginFailCount = 0;
         this.isAccountLock = "N";