diff options
author | Garret Buell <terragb@gmail.com> | 2008-08-30 15:50:36 -0400 |
---|---|---|
committer | Garret Buell <terragb@gmail.com> | 2008-08-30 15:50:36 -0400 |
commit | 4d1528734d840e2da0d9b24c18d739cd6d70853e (patch) | |
tree | ef8211fdebbd9427a956d274a33d185aac6d8f63 /actions | |
parent | 51caab6e5e9f27765cb94e5b5cf0cf51f97850cc (diff) |
RequirePassword
Require a password with at least 6 characters when registering.
darcs-hash:20080830195036-e3c0d-6b4cac221674240e1a8383675b69863f54dd2525.gz
Diffstat (limited to 'actions')
-rw-r--r-- | actions/register.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/actions/register.php b/actions/register.php index aee99b693..f366bd3e0 100644 --- a/actions/register.php +++ b/actions/register.php @@ -87,6 +87,9 @@ class RegisterAction extends Action { } else if (!is_null($location) && strlen($location) > 255) { $this->show_form(_('Location is too long (max 255 chars).')); return; + } else if (strlen($password) < 6) { + $this->show_form(_('Password must be 6 or more characters.')); + return; } else if ($password != $confirm) { $this->show_form(_('Passwords don\'t match.')); } else if ($user = User::register(array('nickname' => $nickname, 'password' => $password, 'email' => $email, |