Check existence of nonce Closes #5050
This commit is contained in:
parent
f6ca02e099
commit
c3d5111c8d
|
@ -712,7 +712,7 @@ class WC_Form_Handler {
|
|||
* Process the login form.
|
||||
*/
|
||||
public function process_login() {
|
||||
if ( ! empty( $_POST['login'] ) ) {
|
||||
if ( ! empty( $_POST['login'] ) && ! empty( $_POST['_wpnonce'] ) ) {
|
||||
|
||||
wp_verify_nonce( $_POST['_wpnonce'], 'woocommerce-login' );
|
||||
|
||||
|
|
Loading…
Reference in New Issue