password encryption

This commit is contained in:
surendar.m@watermelon.us 2023-04-11 13:10:41 +05:30
parent 15694ecde1
commit 2a41601026
3 changed files with 36 additions and 32 deletions

View File

@ -100,13 +100,6 @@ export class CustomersListComponent implements OnInit {
}); });
}
else{
}
})
}
this._cus.getCustomersListDetails().subscribe(res => { this._cus.getCustomersListDetails().subscribe(res => {
if (res.status == 200) { if (res.status == 200) {
this.isLoading = false this.isLoading = false
@ -123,6 +116,7 @@ export class CustomersListComponent implements OnInit {
if(user_role == 'PRACTITIONER'){ if(user_role == 'PRACTITIONER'){
const activeIds = this.appoinmentsIds const activeIds = this.appoinmentsIds
const serviceList = this.customersList const serviceList = this.customersList
console.log(activeIds,serviceList)
const result = serviceList.filter(({id}) => activeIds.includes(id)); const result = serviceList.filter(({id}) => activeIds.includes(id));
console.log(result) console.log(result)
@ -137,7 +131,15 @@ export class CustomersListComponent implements OnInit {
this.customersListLength= null; this.customersListLength= null;
this.recordStatus=true; this.recordStatus=true;
} }
}, error => this.isLoading = false); }, error => this.isLoading = false);
}
else{
}
})
}
} }

View File

@ -67,7 +67,7 @@
<ng-container matColumnDef="Password"> <ng-container matColumnDef="Password">
<th mat-header-cell *matHeaderCellDef class="font-color"> Password </th> <th mat-header-cell *matHeaderCellDef class="font-color"> Password </th>
<td mat-cell *matCellDef="let element" class="element-spc"> {{element.password}} </td> <td mat-cell *matCellDef="let element" class="element-spc"> {{hashPassword(element.password)}} </td>
</ng-container> </ng-container>
<ng-container matColumnDef="mobile_no"> <ng-container matColumnDef="mobile_no">

View File

@ -107,7 +107,9 @@ export class UserListComponent implements OnInit {
// alert(error.html_format); // alert(error.html_format);
}) })
} }
hashPassword(password: string){
return "*".repeat(password.length)
}
ngAfterViewInit() { ngAfterViewInit() {
console.log(this.usersList,this.paginator) console.log(this.usersList,this.paginator)
this.usersList.paginator = this.paginator; this.usersList.paginator = this.paginator;