[Jifty-commit] r3194 -
jifty/trunk/lib/Jifty/Plugin/Authentication/Password/Action
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Sat May 5 09:15:08 EDT 2007
Author: ruz
Date: Sat May 5 09:15:04 2007
New Revision: 3194
Modified:
jifty/trunk/lib/Jifty/Plugin/Authentication/Password/Action/Login.pm
Log:
* drop undef warning
Modified: jifty/trunk/lib/Jifty/Plugin/Authentication/Password/Action/Login.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Plugin/Authentication/Password/Action/Login.pm (original)
+++ jifty/trunk/lib/Jifty/Plugin/Authentication/Password/Action/Login.pm Sat May 5 09:15:04 2007
@@ -83,7 +83,7 @@
if ($token eq '') { # we have no token, validate in a standard way
- if ($pw eq '') {
+ unless ( defined $pw && length $pw ) {
return $self->validation_error(password => "Please fill in this field." );
}
} else { # we have a token, so we should have a hashed pw
More information about the Jifty-commit
mailing list