diff --git a/src/framework/auth/components/login/login.component.ts b/src/framework/auth/components/login/login.component.ts index 495c701296..e591ea7e98 100644 --- a/src/framework/auth/components/login/login.component.ts +++ b/src/framework/auth/components/login/login.component.ts @@ -80,7 +80,7 @@ import { NbAuthResult } from '../../services/auth-result';
@@ -133,6 +133,7 @@ export class NbLoginComponent { user: any = {}; submitted: boolean = false; socialLinks: NbAuthSocialLink[] = []; + rememberMe = false; constructor(protected service: NbAuthService, @Inject(NB_AUTH_OPTIONS) protected options = {}, @@ -143,6 +144,7 @@ export class NbLoginComponent { this.showMessages = this.getConfigValue('forms.login.showMessages'); this.strategy = this.getConfigValue('forms.login.strategy'); this.socialLinks = this.getConfigValue('forms.login.socialLinks'); + this.rememberMe = this.getConfigValue('forms.login.rememberMe'); } login(): void { diff --git a/src/framework/auth/strategies/password/password-strategy-options.ts b/src/framework/auth/strategies/password/password-strategy-options.ts index 663b6a0ad8..f731323534 100644 --- a/src/framework/auth/strategies/password/password-strategy-options.ts +++ b/src/framework/auth/strategies/password/password-strategy-options.ts @@ -11,7 +11,6 @@ import { HttpErrorResponse, HttpResponse } from '@angular/common/http'; export interface NbPasswordStrategyModule { alwaysFail?: boolean; - rememberMe?: boolean; endpoint?: string; method?: string; redirect?: { @@ -54,7 +53,6 @@ export class NbPasswordAuthStrategyOptions extends NbAuthStrategyOptions { }; register?: boolean | NbPasswordStrategyModule = { alwaysFail: false, - rememberMe: true, endpoint: 'register', method: 'post', requireValidToken: false, diff --git a/src/framework/auth/strategies/password/password-strategy.ts b/src/framework/auth/strategies/password/password-strategy.ts index 9f2755d55b..b7b1d4b15c 100644 --- a/src/framework/auth/strategies/password/password-strategy.ts +++ b/src/framework/auth/strategies/password/password-strategy.ts @@ -41,7 +41,6 @@ import { NbAuthIllegalTokenError } from '../../services/token/token'; * }; * register?: boolean | NbPasswordStrategyModule = { * alwaysFail: false, - * rememberMe: true, * endpoint: 'register', * method: 'post', * requireValidToken: false,