From eb726e6edcf0c79ef5e4f3b6539397fb2760e56e Mon Sep 17 00:00:00 2001 From: Eduardo Robles Date: Thu, 28 Sep 2023 14:03:57 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20Resend=20auth=20codes=20in=20ema?= =?UTF-8?q?il-otl=20or=20sms-otp=20doesn't=20work=20in=20alt-auth-method?= =?UTF-8?q?=20(#345)=20(#346)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Parent issue: https://github.com/sequentech/meta/issues/260 --- avRegistration/login-directive/login-directive.js | 4 ++++ dist/appCommon-vmaster.js | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/avRegistration/login-directive/login-directive.js b/avRegistration/login-directive/login-directive.js index b3384274..e2380738 100644 --- a/avRegistration/login-directive/login-directive.js +++ b/avRegistration/login-directive/login-directive.js @@ -176,6 +176,10 @@ angular.module('avRegistration') return; } + // set alternative auth method id + if (scope.current_alt_auth_method_id) { + data.alt_auth_method_id = scope.current_alt_auth_method_id; + } // reset code field, as we are going to send a new one if (!!field) { diff --git a/dist/appCommon-vmaster.js b/dist/appCommon-vmaster.js index f3a7b36e..40974003 100644 --- a/dist/appCommon-vmaster.js +++ b/dist/appCommon-vmaster.js @@ -479,7 +479,8 @@ angular.module("avRegistration").config(function() {}), angular.module("avRegist [ element.name, element.value ]; })); if (!stop) { - if (field && (field.value = ""), scope.sendingData = !0, scope.skipSendAuthCode) return onAuthCodeSent(), + if (scope.current_alt_auth_method_id && (data.alt_auth_method_id = scope.current_alt_auth_method_id), + field && (field.value = ""), scope.sendingData = !0, scope.skipSendAuthCode) return onAuthCodeSent(), void (scope.skipSendAuthCode = !1); Authmethod.resendAuthCode(data, autheventid).then(onAuthCodeSent, function(response) { $timeout(scope.sendingDataTimeout, 3e3), scope.error = $i18next("avRegistration.errorSendingAuthCode");