一些优化更新

This commit is contained in:
thinkgem
2019-10-11 20:33:05 +08:00
parent 7138f97a0e
commit 195c0af52f
4 changed files with 13 additions and 1 deletions

View File

@@ -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 明文密码

View File

@@ -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();

View File

@@ -4,6 +4,7 @@
保\ 存=Save
关\ 闭=Close
确定=Ok
确\ 定=Ok
清除=Clear
关闭=Close
查询=Search

View File

@@ -4,6 +4,7 @@
保\ 存=保存
关\ 闭=閉じる
确定=はい
确\ 定=はい
清除=クリア
关闭=閉じる
查询=検索