summaryrefslogtreecommitdiff
path: root/actions/emailsettings.php
diff options
context:
space:
mode:
authorCraig Andrews <candrews@integralblue.com>2009-10-26 10:31:12 -0400
committerCraig Andrews <candrews@integralblue.com>2009-10-26 10:31:12 -0400
commit0b4390e7f2322a15f16919425de039d555b3e516 (patch)
tree93c6d436161e42c93df2c089ef1000024ef74d89 /actions/emailsettings.php
parent3371e243165df54f41febcb1a8ab578ca5950a18 (diff)
Make email domain checking optional, as some statusnet installations (such as those behind restrictive corporate firewalls, or on home systems on restrictive connections) cannot connect to any mail
systems, and this check will always fail.
Diffstat (limited to 'actions/emailsettings.php')
-rw-r--r--actions/emailsettings.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/actions/emailsettings.php b/actions/emailsettings.php
index 6eff06c0d..67b991cdc 100644
--- a/actions/emailsettings.php
+++ b/actions/emailsettings.php
@@ -326,7 +326,7 @@ class EmailsettingsAction extends AccountSettingsAction
$this->showForm(_('Cannot normalize that email address'));
return;
}
- if (!Validate::email($email, true)) {
+ if (!Validate::email($email, common_config('email', 'check_domain'))) {
$this->showForm(_('Not a valid email address'));
return;
} else if ($user->email == $email) {