diff options
author | Zach Copley <zach@status.net> | 2010-03-10 03:39:05 +0000 |
---|---|---|
committer | Zach Copley <zach@status.net> | 2010-03-10 03:39:05 +0000 |
commit | 7f2253759ccdc5ab8698c447b29762314883db1a (patch) | |
tree | 6e864f8384b243ece5e24ace177a32f1ddcc97c8 /lib/util.php | |
parent | 60e0f0426133544eaaea7ff84da5f02ca86bd8cc (diff) |
A blank username should never be allowed.
Diffstat (limited to 'lib/util.php')
-rw-r--r-- | lib/util.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/util.php b/lib/util.php index 76639e2d4..44ccc0def 100644 --- a/lib/util.php +++ b/lib/util.php @@ -159,6 +159,11 @@ function common_munge_password($password, $id) function common_check_user($nickname, $password) { + // empty nickname always unacceptable + if (empty($nickname)) { + return false; + } + $authenticatedUser = false; if (Event::handle('StartCheckPassword', array($nickname, $password, &$authenticatedUser))) { |