add 企业用户登录时重置会员权限

This commit is contained in:
lijiarao
2022-08-18 11:36:16 +08:00
parent 5361a8ed53
commit 50f2b3984c
2 changed files with 3 additions and 0 deletions
@@ -73,6 +73,8 @@ public interface CommonConstant {
/** 登录用户Shiro权限缓存KEY前缀 */
public static String PREFIX_USER_SHIRO_CACHE = "shiro:cache:com.jero.config.shiro.ShiroRealm.authorizationCache:";
/** 会员登录用户Shiro权限缓存KEY前缀 */
public static String MEMBER_PREFIX_USER_SHIRO_CACHE = "shiro:cache:org.jeecg.modules.shiro.authc.ShiroRealm.authorizationCache:";
/** 登录用户Token令牌缓存KEY前缀 */
public static final String PREFIX_USER_TOKEN = "prefix_user_token_";
/** Token缓存时间:3600秒即一小时 */
@@ -356,6 +356,7 @@ public class CompanyLoginController {
* 用户信息
*/
private void userInfo(PayContactsManagement contactsManagement, Result<JSONObject> result) {
redisUtil.del(CommonConstant.MEMBER_PREFIX_USER_SHIRO_CACHE + contactsManagement.getMemberId());
String syspassword = contactsManagement.getPassword();
String phone = contactsManagement.getPhone();
contactsManagement.setPhone(PasswordUtil.decrypt(phone));