Skip to content

Commit dae0233

Browse files
author
Rafael Grigorian
committed
Fixed #11
1 parent f28c5ac commit dae0233

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/app/code/JetRails/Cloudflare/Model/Adminhtml/Api/Overview/Configuration.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ public function __construct (
4040
public function validateAuth () {
4141
$this->_request->setType ( Request::REQUEST_GET );
4242
$response = $this->_request->resolve ("user/tokens/verify");
43+
if ( !$response->success ) {
44+
return false;
45+
}
46+
$zone = $this->getZoneId ();
47+
$response = $this->_request->resolve ("zones/$zone");
4348
return $response->success;
4449
}
4550

0 commit comments

Comments
 (0)