[CST-6153] Use new params name

This commit is contained in:
Giuseppe Digilio
2022-09-21 17:47:58 +02:00
parent 5099d0b18a
commit 2642ed35b7
4 changed files with 5 additions and 5 deletions

View File

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