CST-6153 changes for challange sign update

This commit is contained in:
Nikunj Sharma
2022-08-09 13:25:03 +05:30
parent f203f27e53
commit 2d7b5768bf
2 changed files with 3 additions and 6 deletions

View File

@@ -147,8 +147,7 @@ export class ProfilePageComponent implements OnInit {
}
if (!this.invalidSecurity && passEntered) {
const operations = [
{ op: 'add', path: '/password', value: this.password },
{ op: 'add', path: '/challenge', value: this.currentPassword }
{ "op": "add", "path": "/password", "value": { "password": this.password, "challenge": this.currentPassword } }
] as Operation[];
this.epersonService.patch(this.currentUser, operations).pipe(getFirstCompletedRemoteData()).subscribe((response: RemoteData<EPerson>) => {
if (response.hasSucceeded) {