fix missing username/password in Login controller
authorCaleb Cushing <xenoterracide@gmail.com>
Thu, 31 Dec 2009 13:14:40 +0000 (13:14 +0000)
committerCaleb Cushing <xenoterracide@gmail.com>
Thu, 31 Dec 2009 13:14:40 +0000 (13:14 +0000)
commitab0bd0bb5e2a7d8d3e355ca3524a61c3d4c59fd6
tree2909234182789cd4e701c293c3144b8a5c8f7a43
parentadb0550a261872e52c0c135273249c8b32445a11
fix missing username/password in Login controller

|| "" is reduntant if no credential is found it will already be empty.
defined()  will always return true check to see if variables are empty instead.
add an else and appropriate error message in the event all credentials weren't
submitted.
lib/Catalyst/Manual/Tutorial/05_Authentication.pod