|
@@ -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";
|