Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐞 Resend auth codes in email-otl or sms-otp doesn't work in alt-auth-method (#345) #346

Merged
merged 1 commit into from
Sep 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading