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-v10.0.0.js b/dist/appCommon-v10.0.0.js index f3a7b36e..40974003 100644 --- a/dist/appCommon-v10.0.0.js +++ b/dist/appCommon-v10.0.0.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");