diff options
Diffstat (limited to 'register.php')
-rw-r--r-- | register.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/register.php b/register.php index 8549d05..956efba 100644 --- a/register.php +++ b/register.php @@ -44,6 +44,10 @@ if ($_POST['submitted']) { } elseif (!$userservice->isValidEmail($_POST['email'])) { $tplVars['error'] = T_('E-mail address is not valid. Please try again.'); + // Check if antispam answer is valid + } elseif (strcmp($antispamAnswer, $GLOBALS['antispamAnswer']) != 0) { + $tplVars['error'] = T_('Antispam answer is not valid. Please try again.'); + // Register details } elseif ($userservice->addUser($posteduser, $_POST['password'], $_POST['email'])) { // Log in with new username @@ -57,6 +61,7 @@ if ($_POST['submitted']) { } } +$tplVars['antispamQuestion'] = $GLOBALS['antispamQuestion']; $tplVars['loadjs'] = true; $tplVars['subtitle'] = T_('Register'); $tplVars['formaction'] = createURL('register'); |