2021-05-25
shiro 加盐 构建 SimpleAuthenticationInfo
使用 ByteSource.Util.bytes(userInfo.getSalt()) 作为 盐 一定要和注册时保持一致
SimpleAuthenticationInfo authenticationInfo = new SimpleAuthenticationInfo(
userInfo, //用户名
userInfo.getPassword(), //...
原创
2021-05-25 14:10:57 ·
282 阅读 ·
0 评论