import { APIURLHEADER, ERRORDATA, LOGINPARAMS, MODALCLOSERESPONSEDATA, TYPESECTION } from 'CommonModel';
import { environment } from 'environment';
import { RestService } from 'RestService';
import { APIURLHEADER, ERRORDATA, LOGINPARAMS, MODALCLOSERESPONSEDATA, TYPESECTION } from 'CommonModel';
import { environment } from 'environment';
import { RestService } from 'RestService';
if (this.isFirstLogin) {
this.notifierService.notify('success', this.translateService.instant('PAGE.USERS.CHANGEPASSWORD'));
this.authService.destoryToken();
if (this.isFirstLogin) {
this.notifierService.notify('success', this.translateService.instant('PAGE.USERS.CHANGEPASSWORD'));
this.authService.destoryToken();
/** Used to get the AbstractControl of controlName passed @private */
private getFormControl(controlName: string): AbstractControl {
/** Used to get the AbstractControl of controlName passed @private */
private getFormControl(controlName: string): AbstractControl {
return this.userForm.controls[controlName];
}
/** Method to check loggedin username and update @private */
private checkUsername(payLoad: LOGINPARAMS): void {
return this.userForm.controls[controlName];
}
/** Method to check loggedin username and update @private */
private checkUsername(payLoad: LOGINPARAMS): void {
if (this.userType === 'editUserName' && logUsername === this.userName) {
this.authService.userName.next(payLoad.username);
if (this.userType === 'editUserName' && logUsername === this.userName) {
this.authService.userName.next(payLoad.username);