mirror of
https://gitee.com/dromara/MaxKey.git
synced 2025-12-07 01:18:27 +08:00
去除后端管理cookie的设置
This commit is contained in:
parent
b5e4858608
commit
63c011ee56
@ -83,15 +83,6 @@ export class AuthnService {
|
|||||||
email: authJwt.email
|
email: authJwt.email
|
||||||
};
|
};
|
||||||
|
|
||||||
let hostnames = window.location.hostname.split('.');
|
|
||||||
let subHostName = window.location.hostname;
|
|
||||||
if (hostnames.length >= 2) {
|
|
||||||
subHostName = `${hostnames[hostnames.length - 2]}.${hostnames[hostnames.length - 1]}`;
|
|
||||||
}
|
|
||||||
|
|
||||||
this.cookieService.set(CONSTS.CONGRESS, authJwt.token);
|
|
||||||
this.cookieService.set(CONSTS.CONGRESS, authJwt.ticket, { domain: subHostName });
|
|
||||||
|
|
||||||
this.settingsService.setUser(user);
|
this.settingsService.setUser(user);
|
||||||
//console.log(authJwt);
|
//console.log(authJwt);
|
||||||
this.tokenService.set(authJwt);
|
this.tokenService.set(authJwt);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user