We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88d036c commit 8e3e9deCopy full SHA for 8e3e9de
ReCaptchaUser/Observer/LoginObserver.php
@@ -56,6 +56,8 @@ class LoginObserver implements ObserverInterface
56
57
/**
58
* @var string
59
+ * @deprecated
60
+ * @see no actuall usage in the class
61
*/
62
private $loginActionName;
63
@@ -117,9 +119,7 @@ public function __construct(
117
119
public function execute(Observer $observer): void
118
120
{
121
$key = 'user_login';
- if ($this->isCaptchaEnabled->isCaptchaEnabledFor($key)
- && $this->request->getFullActionName() === $this->loginActionName
122
- ) {
+ if ($this->isCaptchaEnabled->isCaptchaEnabledFor($key)) {
123
$validationConfig = $this->validationConfigResolver->get($key);
124
try {
125
$reCaptchaResponse = $this->captchaResponseResolver->resolve($this->request);
0 commit comments