summaryrefslogtreecommitdiff
path: root/src/views/pages/users
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2011-09-28 20:49:24 -0700
committerLuke Shumaker <lukeshu@sbcglobal.net>2011-09-28 20:49:24 -0700
commit76a6bad6b5015a0b25c0739ac86b7ca0e0620be6 (patch)
tree9e1a0acb233fbb129929d2c042f24d35c945bafe /src/views/pages/users
parent5c2af694ded96faba0e74a3c2d2d548faa6ebb9f (diff)
Force users to give an email address when they create an account.
Diffstat (limited to 'src/views/pages/users')
-rw-r--r--src/views/pages/users/new.html.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/views/pages/users/new.html.php b/src/views/pages/users/new.html.php
index 62a0f09..8b6bdf8 100644
--- a/src/views/pages/users/new.html.php
+++ b/src/views/pages/users/new.html.php
@@ -28,6 +28,12 @@ if (in_array('no pw', $VARS['errors'])) {
$password = '';
}
$t->inputNewPassword('auth_password','Password', $password);
+
+if (in_array('no email', $VARS['errors'])) {
+ $t->inputP("You must provide an email address.", true);
+}
+$t->inputText('user_email', 'Email Address',
+ 'This is so that we can contact you. (duh).', $VARS['email']);
$t->closeFieldset();
foreach ($VARS['antispam_html'] as $html) {