Skip to content

Commit 8e3e9de

Browse files
committed
ACP2E-3300: Captcha on admin login does not require interaction for some users
1 parent 88d036c commit 8e3e9de

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ReCaptchaUser/Observer/LoginObserver.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ class LoginObserver implements ObserverInterface
5656

5757
/**
5858
* @var string
59+
* @deprecated
60+
* @see no actuall usage in the class
5961
*/
6062
private $loginActionName;
6163

@@ -117,9 +119,7 @@ public function __construct(
117119
public function execute(Observer $observer): void
118120
{
119121
$key = 'user_login';
120-
if ($this->isCaptchaEnabled->isCaptchaEnabledFor($key)
121-
&& $this->request->getFullActionName() === $this->loginActionName
122-
) {
122+
if ($this->isCaptchaEnabled->isCaptchaEnabledFor($key)) {
123123
$validationConfig = $this->validationConfigResolver->get($key);
124124
try {
125125
$reCaptchaResponse = $this->captchaResponseResolver->resolve($this->request);

0 commit comments

Comments
 (0)