From 63c011ee563fe943afdc32e876d1cc7f87e7d4a5 Mon Sep 17 00:00:00 2001 From: MaxKey Date: Wed, 14 Dec 2022 08:50:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E5=90=8E=E7=AB=AF=E7=AE=A1?= =?UTF-8?q?=E7=90=86cookie=E7=9A=84=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../maxkey-web-mgt-app/src/app/service/authn.service.ts | 9 --------- 1 file changed, 9 deletions(-) diff --git a/maxkey-web-frontend/maxkey-web-mgt-app/src/app/service/authn.service.ts b/maxkey-web-frontend/maxkey-web-mgt-app/src/app/service/authn.service.ts index 78b19ccec..366a24454 100644 --- a/maxkey-web-frontend/maxkey-web-mgt-app/src/app/service/authn.service.ts +++ b/maxkey-web-frontend/maxkey-web-mgt-app/src/app/service/authn.service.ts @@ -83,15 +83,6 @@ export class AuthnService { 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); //console.log(authJwt); this.tokenService.set(authJwt);