Skip to content

Commit

Permalink
Add check for Api Token
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Rook committed Aug 1, 2021
1 parent ecf07d1 commit b9a86d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Cloudflare.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public static function boot()
public static function isConfigured(): bool
{
if (is_null(static::$isConfigured)) {
static::$isConfigured = static::config('email') && static::config('key');
static::$isConfigured = static::config('email') && static::config('key') || static::config('token');
}

return static::$isConfigured;
Expand Down

0 comments on commit b9a86d8

Please sign in to comment.