fix(console): message text setter (#5597)

This commit is contained in:
Max Peintner 2023-04-03 09:19:36 +02:00 committed by GitHub
parent 4df15511b5
commit 4691298eb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View File

@ -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) {

View File

@ -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<SetCustomPasswordChangeMessageTextResponse.AsObject> {
return this.grpcService.mgmt.setCustomPasswordChangeMessageCustomText(req, null).then((resp) => resp.toObject());
}
public resetCustomPasswordChangeMessageTextToDefault(
lang: string,
): Promise<ResetCustomPasswordChangeMessageTextToDefaultResponse.AsObject> {