Add floating mode support
This commit is contained in:
@@ -12,17 +12,18 @@ namespace Ogre\Captcha\Location;
|
||||
|
||||
use Ogre\Captcha\API;
|
||||
use Override;
|
||||
use Ogre\Captcha\Location;
|
||||
use Ogre\Captcha\LoginLocation;
|
||||
use Ogre\Captcha\Settings;
|
||||
use Ogre\Captcha\Widget;
|
||||
use WP_Error;
|
||||
use WP_User;
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
final class LoginPage extends Location {
|
||||
final class LoginPage extends LoginLocation {
|
||||
|
||||
protected function __construct() {
|
||||
parent::__construct(Settings::LOCATION_LOGIN_PAGE);
|
||||
parent::__construct(Settings::LOCATION_LOGIN_PAGE, 'login');
|
||||
}
|
||||
|
||||
#[Override]
|
||||
@@ -34,6 +35,7 @@ final class LoginPage extends Location {
|
||||
#[Override]
|
||||
public function activate(): void
|
||||
{
|
||||
parent::activate();
|
||||
add_action('login_form', [$this, 'render']);
|
||||
add_filter('shake_error_codes', [$this, 'shake_error_codes']);
|
||||
add_filter('authenticate', [$this, 'process_form'], 20, 1);
|
||||
|
||||
Reference in New Issue
Block a user