diff --git a/src/main/webapp/app/core/auth/auth-jwt.service.ts b/src/main/webapp/app/core/auth/auth-jwt.service.ts index 1696a5531f2b4a589d7cbad7cd59364c0606ff53..1684ed785de5bce9cc58afa3467818d433a40456 100644 --- a/src/main/webapp/app/core/auth/auth-jwt.service.ts +++ b/src/main/webapp/app/core/auth/auth-jwt.service.ts @@ -50,8 +50,12 @@ export class AuthServerProvider { saveRememberMe(rememberMe: boolean): void { this.localStorageService.store('rememberMe', rememberMe); } + getRememberMe(): boolean { - return this.localStorageService.retrieve('rememberMe') as boolean; + const remember = this.localStorageService.retrieve('rememberMe'); + if (!remember) + return false; + return remember as boolean; } private authenticateSuccess(response: JwtToken, rememberMe: boolean): void {