summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChad Phillips2009-11-02 22:57:47 (GMT)
committer Chad Phillips2009-11-02 22:57:47 (GMT)
commit44fb2c7ef44deaf38aea44cc5025b92c28097ada (patch)
tree3afb1d38bdd389c3d92e3b31a9726501d74cebc2
parent0b6abd5f1b3fe1dc3ed80cf4a4345d55056846ea (diff)
better check for no password.
-rwxr-xr-xlogintoboggan.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/logintoboggan.module b/logintoboggan.module
index d3488cd..4af9ffd 100755
--- a/logintoboggan.module
+++ b/logintoboggan.module
@@ -406,7 +406,7 @@ function logintoboggan_user_register_validate($form_id, $form_values) {
* @ingroup logintoboggan_form
*/
function logintoboggan_user_edit_validate($form_id, $form_values) {
- if (strlen($form_values['pass'])) {
+ if (!empty($form_values['pass'])) {
// if we're changing the password, validate it
$pass_err = logintoboggan_validate_pass($form_values['pass']);
if ($pass_err) {