Plugin Directory

Changeset 2317770


Ignore:
Timestamp:
06/04/2020 05:21:15 AM (6 years ago)
Author:
gopimallela
Message:

Fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • login-using-cidaas/trunk/includes/cidaas-login-form.php

    r2316356 r2317770  
    4141    {
    4242        if ( $GLOBALS['pagenow'] == 'wp-login.php'
    43             && ( $this->settings->login_type == 'auto' || ! empty(sanitize_text_field($_GET['force_redirect']) ) )
    44             && (  sanitize_text_field($_GET[ 'action' ]) == NULL || sanitize_text_field($_GET[ 'action' ]) !== 'logout' )
    45             &&  sanitize_text_field($_POST['wp-submit']) == NULL )
     43            && ( $this->settings->login_type == 'auto' || ! empty($_GET['force_redirect'] ) )
     44            && (  $_GET[ 'action' ] == NULL || $_GET[ 'action' ] !== 'logout' )
     45            &&  $_POST['wp-submit'] == NULL )
    4646        {
    47             if (  sanitize_text_field($_GET['login-error']) !== NULL ) {
     47            if (  $_GET['login-error'] !== NULL ) {
    4848                $this->handle_redirect_cookie();
    4949                wp_redirect( $this->client_wrapper->get_authentication_url() );
     
    9696    function handle_login_page( $message ) {
    9797
    98         if (  sanitize_text_field($_GET['login-error']) !== NULL ) {
     98        if (  $_GET['login-error'] !== NULL ) {
    9999            $message .= $this->make_error_output( sanitize_text_field($_GET['login-error']), sanitize_text_field($_GET['message']) );
    100100        }
Note: See TracChangeset for help on using the changeset viewer.