Skip to content

Commit

Permalink
🐞 Resend auth codes in email-otl or sms-otp doesn't work in alt-auth-…
Browse files Browse the repository at this point in the history
…method (#345) (#346)

Parent issue: sequentech/meta#260
  • Loading branch information
edulix authored Sep 28, 2023
1 parent 25e1eca commit eb726e6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions avRegistration/login-directive/login-directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
3 changes: 2 additions & 1 deletion dist/appCommon-vmaster.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit eb726e6

Please sign in to comment.