From d09a2d4a5d38b186c4d269c0c262fc94823ba835 Mon Sep 17 00:00:00 2001
From: "hamza.hramchi" <hamza.hramchi@xelians.fr>
Date: Fri, 14 May 2021 16:51:17 +0200
Subject: [PATCH] FEAT #16992 TIME 0:15 set message content

---
 src/frontend/app/administration/otp/otp.component.ts | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/frontend/app/administration/otp/otp.component.ts b/src/frontend/app/administration/otp/otp.component.ts
index d22e3439a9..bfae98079f 100644
--- a/src/frontend/app/administration/otp/otp.component.ts
+++ b/src/frontend/app/administration/otp/otp.component.ts
@@ -126,6 +126,8 @@ export class OtpComponent implements OnInit {
     }
 
     onSubmit() {
+        this.connector.message.sms = !this.connector.securityModes.includes('sms') ? '' : this.connector.message.sms;
+        this.connector.message.email = !this.connector.securityModes.includes('email') ? '' : this.connector.message.email;
         if (this.creationMode) {
             this.createconnector();
         } else {
-- 
GitLab