Check existence of nonce Closes #5050

This commit is contained in:
Mike Jolley 2014-03-06 11:37:48 +00:00 committed by Coen Jacobs
parent f6ca02e099
commit c3d5111c8d
1 changed files with 1 additions and 1 deletions

View File

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