创建用户修改默认密码

This commit is contained in:
amarsoft 2018-07-12 11:16:33 +08:00
parent fb1d2e13b8
commit 106c62d644
2 changed files with 5 additions and 3 deletions

View File

@ -49,7 +49,7 @@ public class ChannelUserInfoHandler extends CommonHandler {
protected void beforeInsert(JBOTransaction tx, BizObject bo) throws Exception {
//设置初始密码000000als
String sInitPwd = "000000als";
String sInitPwd = "APleasing001";
String sPassword = MessageDigest.getDigestAsUpperHexString("MD5", sInitPwd);
bo.setAttributeValue("Password",sPassword); //如果是新增用户设置初始密码

View File

@ -1,5 +1,7 @@
package com.amarsoft.app.awe.config.orguser.dwhandler;
import java.security.NoSuchAlgorithmException;
import com.amarsoft.are.ARE;
import com.amarsoft.are.jbo.BizObject;
import com.amarsoft.are.jbo.BizObjectManager;
@ -47,8 +49,8 @@ public class UserInfoHandler extends CommonHandler {
}
protected void beforeInsert(JBOTransaction tx, BizObject bo) throws Exception {
//ÉèÖóõʼÃÜÂë000000als
String sInitPwd = "000000als";
//ÉèÖóõʼÃÜÂë:APleasing001
String sInitPwd = "APleasing001";
String sPassword = MessageDigest.getDigestAsUpperHexString("MD5", sInitPwd);
bo.setAttributeValue("Password",sPassword); //如果是新增用户设置初始密码
}