"src/main/vscode:/vscode.git/clone" did not exist on "84c6864fa4c64ee0e2f3e65a89fbd04446bb5644"
Commit a028fddb authored by Junling Bu's avatar Junling Bu
Browse files

update[litemall-admin-api]: 允许同一账号多终端登录管理后台。

parent 4c6394fc
......@@ -29,11 +29,13 @@ public class AdminTokenManager {
public static AdminToken generateToken(Integer id){
AdminToken userToken = idMap.get(id);
if(userToken != null) {
tokenMap.remove(userToken.getToken());
idMap.remove(id);
}
AdminToken userToken = null;
// userToken = idMap.get(id);
// if(userToken != null) {
// tokenMap.remove(userToken.getToken());
// idMap.remove(id);
// }
String token = CharUtil.getRandomString(32);
while (tokenMap.containsKey(token)) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment