diff options
author | Evan Prodromou <evan@controlezvous.ca> | 2008-06-22 14:04:37 -0400 |
---|---|---|
committer | Evan Prodromou <evan@controlezvous.ca> | 2008-06-22 14:04:37 -0400 |
commit | d758c117843dec04b061263095baeea7697b05a4 (patch) | |
tree | 5a5ebdc416f86449948f223a769c108e86711022 /actions/register.php | |
parent | a69dbe7cd541ca054fea6239efce098a7111416a (diff) |
disallow nicknames on a blacklist
darcs-hash:20080622180437-34904-4b6313f6fd8845232031663c5c2df00dff725183.gz
Diffstat (limited to 'actions/register.php')
-rw-r--r-- | actions/register.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/actions/register.php b/actions/register.php index 31c8fea70..16e80ef17 100644 --- a/actions/register.php +++ b/actions/register.php @@ -57,6 +57,8 @@ class RegisterAction extends Action { $this->show_form(_t('Nickname must have only lowercase letters and numbers and no spaces.')); } else if ($this->nickname_exists($nickname)) { $this->show_form(_t('Nickname already exists.')); + } else if (!User::allowed_nickname($nickname)) { + $this->show_form(_t('Not a valid nickname.')); } else if ($this->email_exists($email)) { $this->show_form(_t('Email address already exists.')); } else if ($password != $confirm) { |