Check new list.

This commit is contained in:
James Cole 2016-07-24 18:51:39 +02:00
parent 1392275b81
commit c287bc139c
2 changed files with 2 additions and 12 deletions

View File

@ -42,5 +42,3 @@ SHOW_DEMO_WARNING=false
ANALYTICS_ID=
RUNCLEANUP=true
SITE_OWNER=mail@example.com
BLOCKED_DOMAINS=

View File

@ -15,6 +15,7 @@ use Auth;
use FireflyIII\Events\UserRegistration;
use FireflyIII\Exceptions\FireflyException;
use FireflyIII\Http\Controllers\Controller;
use FireflyIII\Support\Facades\FireflyConfig;
use FireflyIII\User;
use Illuminate\Foundation\Auth\AuthenticatesAndRegistersUsers;
use Illuminate\Foundation\Auth\ThrottlesLogins;
@ -177,16 +178,7 @@ class AuthController extends Controller
*/
protected function getBlockedDomains()
{
$set = explode(',', env('BLOCKED_DOMAINS', ''));
$domains = [];
foreach ($set as $entry) {
$domain = trim($entry);
if (strlen($domain) > 0) {
$domains[] = $domain;
}
}
return $domains;
return FireflyConfig::get('blocked-domains')->data;
}
/**