Skip to content

Commit 9ff0e50

Browse files
Rizwan KhanRizwan Khan
authored andcommitted
AC-9797: 2FA functionality enhancement
1 parent 32724ef commit 9ff0e50

File tree

2 files changed

+6
-4
lines changed
  • TwoFactorAuth

2 files changed

+6
-4
lines changed

TwoFactorAuth/Block/Provider/Google/Auth.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ class Auth extends Template
2626
private $scopeConfig;
2727

2828
/**
29-
* @param ScopeConfigInterface|null $scopeConfig
29+
* @param \Magento\Backend\Block\Template\Context $context
30+
* @param ScopeConfigInterface $scopeConfig
31+
* @param array $data
3032
*/
3133
public function __construct(
3234
\Magento\Backend\Block\Template\Context $context,

TwoFactorAuth/view/adminhtml/web/js/google/auth.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ define([
7373
var me = this;
7474

7575
attempts++;
76-
if (attempts > this.getRetryAttempts()){
77-
alert("Maximum otp retries are done.");
78-
location.href = $(".tfa-logout-link").attr("href");
76+
if (attempts > this.getRetryAttempts()) {
77+
console.log('Maximum otp retries are done.');
78+
location.href = $('.tfa-logout-link').attr('href');
7979
return;
8080
}
8181

0 commit comments

Comments
 (0)