Add floating mode support
This commit is contained in:
@@ -11,17 +11,17 @@
|
||||
namespace Ogre\Captcha\Location;
|
||||
|
||||
use Override;
|
||||
use Ogre\Captcha\Location;
|
||||
use Ogre\Captcha\LoginLocation;
|
||||
use Ogre\Captcha\Settings;
|
||||
use WP_Error;
|
||||
use WP_User;
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
final class LostPasswordForm extends Location {
|
||||
final class LostPasswordForm extends LoginLocation {
|
||||
|
||||
protected function __construct() {
|
||||
parent::__construct(Settings::LOCATION_LOST_PASSWORD_FORM);
|
||||
parent::__construct(Settings::LOCATION_LOST_PASSWORD_FORM, 'lostpassword');
|
||||
}
|
||||
|
||||
#[Override]
|
||||
@@ -33,6 +33,7 @@ final class LostPasswordForm extends Location {
|
||||
#[Override]
|
||||
public function activate(): void
|
||||
{
|
||||
parent::activate();
|
||||
add_action('lostpassword_form', [$this, 'render']);
|
||||
add_action('lostpassword_post', [$this, 'process_form']);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user