diff --git a/console/src/app/modules/policies/message-texts/message-texts.component.ts b/console/src/app/modules/policies/message-texts/message-texts.component.ts index 96409e761b..4150e15865 100644 --- a/console/src/app/modules/policies/message-texts/message-texts.component.ts +++ b/console/src/app/modules/policies/message-texts/message-texts.component.ts @@ -599,7 +599,7 @@ export class MessageTextsComponent implements OnInit, OnDestroy { (this.service as ManagementService).setCustomPasswordlessRegistrationMessageCustomText(this.updateRequest), ); case MESSAGETYPES.PASSWORDCHANGE: - return handler((this.service as ManagementService).getCustomPasswordChangeMessageText(this.updateRequest)); + return handler((this.service as ManagementService).setCustomPasswordChangeMessageText(this.updateRequest)); } } else if (this.serviceType === PolicyComponentServiceType.ADMIN) { switch (this.currentType) { diff --git a/console/src/app/services/mgmt.service.ts b/console/src/app/services/mgmt.service.ts index 37f5f14984..0574bbf4af 100644 --- a/console/src/app/services/mgmt.service.ts +++ b/console/src/app/services/mgmt.service.ts @@ -400,6 +400,8 @@ import { SetCustomInitMessageTextResponse, SetCustomLoginTextsRequest, SetCustomLoginTextsResponse, + SetCustomPasswordChangeMessageTextRequest, + SetCustomPasswordChangeMessageTextResponse, SetCustomPasswordlessRegistrationMessageTextRequest, SetCustomPasswordlessRegistrationMessageTextResponse, SetCustomPasswordResetMessageTextRequest, @@ -688,6 +690,12 @@ export class ManagementService { return this.grpcService.mgmt.getCustomPasswordChangeMessageText(req, null).then((resp) => resp.toObject()); } + public setCustomPasswordChangeMessageText( + req: SetCustomPasswordChangeMessageTextRequest, + ): Promise { + return this.grpcService.mgmt.setCustomPasswordChangeMessageCustomText(req, null).then((resp) => resp.toObject()); + } + public resetCustomPasswordChangeMessageTextToDefault( lang: string, ): Promise {