password encryption
This commit is contained in:
parent
15694ecde1
commit
2a41601026
@ -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)
|
||||||
@ -139,6 +133,14 @@ export class CustomersListComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
}, error => this.isLoading = false);
|
}, error => this.isLoading = false);
|
||||||
|
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -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">
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user