• Resolved Martin Taylor

    (@docdunning)


    I’ve been experimenting with the ESI nonce settings on my login form, but I’m not sure how to confirm whether it’s doing anything. I still sometimes get nonce errors when logging in.

    First, in the PHP for the login form, I did this:

    do_action( 'litespeed_nonce', 'my_login_nonce' );
    wp_nonce_field( 'logging-in', 'my_login_nonce' );

    But this doesn’t seem to work – I often get an error when validating the login with wp_verify_nonce().

    So now I’ve entered ‘my_login_nonce’ in the ESI config page for LSC. I’m not convinced that this is any more successful.

    How can I check whether ESI is working with the nonce? Should I see anything in the HTML that shows that the nonce is being handled by ESI? Do I have to switch on the debugging output?

Viewing 1 replies (of 1 total)
  • Plugin Support qtwrk

    (@qtwrk)

    Hi,

    yes, please enable the debug log , you should see something like

    
    06/13/21 22:23:04.594 [111.111.111.111:51837 1 h8s] [ESI] Appended nonce action to nonce list [action] xxx
    06/13/21 22:23:04.594 [111.111.111.111:51837 1 h8s] [ESI] Overwrite wp_create_nonce()
    

    in log

    Best regards,

Viewing 1 replies (of 1 total)
  • The topic ‘ESI Nonce – how to confirm?’ is closed to new replies.