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), (this.service as ManagementService).setCustomPasswordlessRegistrationMessageCustomText(this.updateRequest),
); );
case MESSAGETYPES.PASSWORDCHANGE: 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) { } else if (this.serviceType === PolicyComponentServiceType.ADMIN) {
switch (this.currentType) { switch (this.currentType) {

View File

@ -400,6 +400,8 @@ import {
SetCustomInitMessageTextResponse, SetCustomInitMessageTextResponse,
SetCustomLoginTextsRequest, SetCustomLoginTextsRequest,
SetCustomLoginTextsResponse, SetCustomLoginTextsResponse,
SetCustomPasswordChangeMessageTextRequest,
SetCustomPasswordChangeMessageTextResponse,
SetCustomPasswordlessRegistrationMessageTextRequest, SetCustomPasswordlessRegistrationMessageTextRequest,
SetCustomPasswordlessRegistrationMessageTextResponse, SetCustomPasswordlessRegistrationMessageTextResponse,
SetCustomPasswordResetMessageTextRequest, SetCustomPasswordResetMessageTextRequest,
@ -688,6 +690,12 @@ export class ManagementService {
return this.grpcService.mgmt.getCustomPasswordChangeMessageText(req, null).then((resp) => resp.toObject()); 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( public resetCustomPasswordChangeMessageTextToDefault(
lang: string, lang: string,
): Promise<ResetCustomPasswordChangeMessageTextToDefaultResponse.AsObject> { ): Promise<ResetCustomPasswordChangeMessageTextToDefaultResponse.AsObject> {