add 企业用户登录时重置会员权限
This commit is contained in:
+2
@@ -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秒即一小时 */
|
||||
|
||||
+1
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user