+ {{ 'permissions' | translate }} +
++ +
| + | {{ 'Permissions' | translate }} | ++ {{ 'allow' | translate }} + | +
|---|
diff --git a/src/app/authenticate/login/login.component.ts b/src/app/authenticate/login/login.component.ts index 53eca3d..6847685 100644 --- a/src/app/authenticate/login/login.component.ts +++ b/src/app/authenticate/login/login.component.ts @@ -96,7 +96,6 @@ export class LoginComponent { login() { if (this.loginForm.valid) { - this.ucred.porOrgacode = HiddenValues.POR_ORGACODE; this.ucred.password = this.loginForm.get(FormConstants.PASSWORD)?.value; this.ucred.userId = this.loginForm.get(FormConstants.USER_ID)?.value; this.authService.authenticate(this.ucred).subscribe( (res: any) => { diff --git a/src/app/services/authenticate.service.ts b/src/app/services/authenticate.service.ts index 8acf174..52b6a7d 100644 --- a/src/app/services/authenticate.service.ts +++ b/src/app/services/authenticate.service.ts @@ -31,10 +31,10 @@ export class AuthenticationService { this.i18nService.error(ErrorMessages.ALREADY_LOGGED_IN,[]); return; } - this.credentialService.setPorOrgacode(uCreds.porOrgacode); + this.credentialService.setPorOrgacode(HiddenValues.POR_ORGACODE); this.credentialService.setUserId(uCreds.userId); this.credentialService.setPassword(uCreds.password); - this.storageService.setItem(FormConstants.POR_ORGACODE, uCreds.porOrgacode); + this.storageService.setItem(FormConstants.POR_ORGACODE, HiddenValues.POR_ORGACODE); this.storageService.setItem(FormConstants.USER_ID, uCreds.userId); this.storageService.setItem(FormConstants.PASSWORD, uCreds.password); this.httpService.requestPOST(URIKey.USER_LOGIN_URI, uCreds).subscribe((data: any) => { diff --git a/src/app/shared/components/password-hide-show/password-hide-show.component.ts b/src/app/shared/components/password-hide-show/password-hide-show.component.ts index 7a15567..c937edd 100644 --- a/src/app/shared/components/password-hide-show/password-hide-show.component.ts +++ b/src/app/shared/components/password-hide-show/password-hide-show.component.ts @@ -1,8 +1,14 @@ -import { Component, EventEmitter, Input, Output } from '@angular/core'; +import { Component, EventEmitter, forwardRef, Input, Output } from '@angular/core'; +import { NG_VALUE_ACCESSOR } from '@angular/forms'; @Component({ selector: 'app-password-hide-show', imports: [], + providers: [{ + provide: NG_VALUE_ACCESSOR, + useExisting: forwardRef(() => PasswordHideShowComponent), + multi: true + }], templateUrl: './password-hide-show.component.html', styleUrl: './password-hide-show.component.scss' }) diff --git a/src/app/user-management/change-password/change-password.component.html b/src/app/user-management/change-password/change-password.component.html index 60cd786..663e705 100644 --- a/src/app/user-management/change-password/change-password.component.html +++ b/src/app/user-management/change-password/change-password.component.html @@ -3,7 +3,7 @@
| + | {{ 'Permissions' | translate }} | ++ {{ 'allow' | translate }} + | +
|---|