一些优化更新
This commit is contained in:
@@ -5,6 +5,8 @@ package com.jeesite.common.shiro.realm;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
||||
import org.apache.shiro.authc.AuthenticationException;
|
||||
import org.apache.shiro.authc.AuthenticationInfo;
|
||||
import org.apache.shiro.authc.AuthenticationToken;
|
||||
|
||||
import com.jeesite.common.codec.EncodeUtils;
|
||||
@@ -54,6 +56,14 @@ public class AuthorizingRealm extends BaseAuthorizingRealm {
|
||||
return super.getUserInfo(token);
|
||||
}
|
||||
|
||||
/**
|
||||
* 校验登录凭证
|
||||
*/
|
||||
@Override
|
||||
protected void assertCredentialsMatch(AuthenticationToken authcToken, AuthenticationInfo authcInfo) throws AuthenticationException {
|
||||
super.assertCredentialsMatch(authcToken, authcInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 生成密文密码,生成随机的16位salt并经过1024次 sha-1 hash
|
||||
* @param plainPassword 明文密码
|
||||
|
||||
@@ -157,7 +157,7 @@ public class EmpUserServiceSupport extends CrudService<EmpUserDao, EmpUser>
|
||||
@Transactional(readOnly=false)
|
||||
public String importData(MultipartFile file, Boolean isUpdateSupport) {
|
||||
if (file == null){
|
||||
throw new ServiceException("请选择导入的数据文件!");
|
||||
throw new ServiceException(text("请选择导入的数据文件!"));
|
||||
}
|
||||
int successNum = 0; int failureNum = 0;
|
||||
StringBuilder successMsg = new StringBuilder();
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
保\ 存=Save
|
||||
关\ 闭=Close
|
||||
确定=Ok
|
||||
确\ 定=Ok
|
||||
清除=Clear
|
||||
关闭=Close
|
||||
查询=Search
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
保\ 存=保存
|
||||
关\ 闭=閉じる
|
||||
确定=はい
|
||||
确\ 定=はい
|
||||
清除=クリア
|
||||
关闭=閉じる
|
||||
查询=検索
|
||||
|
||||
Reference in New Issue
Block a user