This commit is contained in:
ThemeLexus 2019-10-02 08:51:24 +07:00
parent 43d91a1284
commit 600a53371d
2 changed files with 3 additions and 2 deletions

View File

@ -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;

View File

@ -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 ); ?>">