uate
This commit is contained in:
parent
43d91a1284
commit
600a53371d
@ -25,10 +25,11 @@ class Opalestate_User_Form_Handler {
|
||||
*/
|
||||
public static function process_login() {
|
||||
|
||||
$nonce_value = isset( $_POST['_wpnonce'] ) ? sanitize_text_field( $_POST['_wpnonce'] ) : '';
|
||||
$nonce_value = isset( $_POST['opalestate-login-popup-nonce'] ) ? sanitize_text_field( $_POST['opalestate-login-popup-nonce'] ) : '';
|
||||
$nonce_value = isset( $_POST['opalestate-login-nonce'] ) ? sanitize_text_field( $_POST['opalestate-login-nonce'] ) : $nonce_value;
|
||||
|
||||
|
||||
|
||||
/* verify wp nonce */
|
||||
if ( ! wp_verify_nonce( $nonce_value, 'opalestate-login' ) ) {
|
||||
return;
|
||||
|
@ -525,7 +525,7 @@ class Opalestate_Account_Button_Elementor_Widget extends Opalestate_Elementor_Wi
|
||||
<input class="opalestate-input checkbox" name="rememberme" type="checkbox" value="forever"/> <?php esc_html_e( 'Remember me', 'opalestate-pro' ); ?>
|
||||
</p>
|
||||
|
||||
<?php wp_nonce_field( 'opalestate-login', 'opalestate-login-nonce' ); ?>
|
||||
<?php wp_nonce_field( 'opalestate-login', 'opalestate-login-popup-nonce' ); ?>
|
||||
|
||||
<?php if ( isset( $redirect ) && $redirect ) : ?>
|
||||
<input type="hidden" name="redirect" value="<?php echo esc_url( $redirect ); ?>">
|
||||
|
Loading…
Reference in New Issue
Block a user