usePrivateInformationAgree is added

This commit is contained in:
병준 박 2019-11-28 14:02:07 +09:00
parent 0a9e3bc84c
commit 3fd92b2df5
4 changed files with 18 additions and 3 deletions

View File

@ -60,6 +60,8 @@ import {
import { KEY_LOGIN_RES_INFO } from '@app/types/login-res-info.type'; import { KEY_LOGIN_RES_INFO } from '@app/types/login-res-info.type';
import { ProtocolService } from '@ucap-webmessenger/protocol'; import { ProtocolService } from '@ucap-webmessenger/protocol';
import { environment } from '../../../../environments/environment';
@Injectable() @Injectable()
export class Effects { export class Effects {
webLogin$ = createEffect(() => webLogin$ = createEffect(() =>
@ -201,7 +203,11 @@ export class Effects {
EnvironmentsInfo EnvironmentsInfo
>(KEY_ENVIRONMENTS_INFO); >(KEY_ENVIRONMENTS_INFO);
if (!loginRes.privateInformationAgree) { if (
environment.productConfig.authentication
.usePrivateInformationAgree &&
!loginRes.privateInformationAgree
) {
const privacyTotalUrl = this.piService.privacyTotalUrl({ const privacyTotalUrl = this.piService.privacyTotalUrl({
companyCode: loginInfo.companyCode, companyCode: loginInfo.companyCode,
userSeq: loginRes.userSeq, userSeq: loginRes.userSeq,

View File

@ -19,7 +19,10 @@ export const environment: Environment = {
productConfig: { productConfig: {
productId: 'PRO_000482', productId: 'PRO_000482',
productName: 'EZMessenger' productName: 'EZMessenger',
authentication: {
usePrivateInformationAgree: false
}
}, },
commonApiModuleConfig: { commonApiModuleConfig: {

View File

@ -19,7 +19,10 @@ export const environment: Environment = {
productConfig: { productConfig: {
productId: 'PRO_000482', productId: 'PRO_000482',
productName: 'EZMessenger' productName: 'EZMessenger',
authentication: {
usePrivateInformationAgree: false
}
}, },
commonApiModuleConfig: { commonApiModuleConfig: {

View File

@ -38,6 +38,9 @@ export interface Environment {
productConfig: { productConfig: {
productId: string; productId: string;
productName: string; productName: string;
authentication: {
usePrivateInformationAgree: boolean;
};
}; };
commonApiModuleConfig: CommonApiModuleConfig; commonApiModuleConfig: CommonApiModuleConfig;