Commit 49ebe368 authored by Matt Tucker's avatar Matt Tucker Committed by matt

Don't allow blank password (JM-560).

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@3399 b35dd754-fafc-0310-a699-88a17e54d16e
parent b7b08b01
...@@ -56,7 +56,11 @@ ...@@ -56,7 +56,11 @@
errors.put("username", ""); errors.put("username", "");
} }
} }
if (password == null) { // Trim the password. This means we don't accept spaces as passwords. We don't
// trim the passwordConfirm as well since not trimming will ensure the user doesn't
// think space is an ok password character.
password = password.trim();
if (password == null || password.equals("")) {
errors.put("password",""); errors.put("password","");
} }
if (passwordConfirm == null) { if (passwordConfirm == null) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment