mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 16:24:33 +08:00
Merge pull request #1339 from woocommerce/PCP-1600-v2-possible-cross-site-request-forgery-csrf-can-invalidate-merchant-credentials
Cross Site Request Forgery (CSRF) can invalidate merchant credentials (1600)
This commit is contained in:
commit
a7abff6bca
1 changed files with 1 additions and 2 deletions
|
@ -168,8 +168,7 @@ class SettingsListener {
|
|||
* Listens if the merchant ID should be updated.
|
||||
*/
|
||||
public function listen_for_merchant_id() {
|
||||
|
||||
if ( ! $this->is_valid_site_request() ) {
|
||||
if ( ! $this->is_valid_site_request() || $this->state->current_state() === State::STATE_ONBOARDED ) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue