We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 820e7586 authored by Evan Prodromou's avatar Evan Prodromou

suppress free email

parent b6df9364
......@@ -103,9 +103,8 @@ class DomainStatusNetworkPlugin extends Plugin
include_once $dir . '/actions/' . strtolower(mb_substr($cls, 0, -6)) . '.php';
return false;
case 'DomainStatusNetworkInstaller':
include_once $dir . '/lib/' . strtolower($cls) . '.php';
return false;
case 'GlobalApiAction':
case 'FreeEmail':
include_once $dir . '/lib/' . strtolower($cls) . '.php';
return false;
default:
......@@ -245,6 +244,10 @@ class DomainStatusNetworkPlugin extends Plugin
{
$domain = self::toDomain($email);
if (FreeEmail::isFree($domain)) {
throw new ClientException(_("Use your work email."));
}
$sn = self::siteForDomain($domain);
if (empty($sn)) {
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment