aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/passwordauth.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2012-03-28 16:47:37 -0400
committerJoey Hess <joey@kitenet.net>2012-03-28 16:47:37 -0400
commitc0e5a0f1aa10ecd3b351886b95be995f44d6d8fb (patch)
treec66832064c82070c16347d35571d2272b801bfb8 /IkiWiki/Plugin/passwordauth.pm
parent723c5b97d37125a4020670807fc1569918d37276 (diff)
downloadikiwiki-c0e5a0f1aa10ecd3b351886b95be995f44d6d8fb.tar
ikiwiki-c0e5a0f1aa10ecd3b351886b95be995f44d6d8fb.tar.gz
fix another undef/"" confusion
Diffstat (limited to 'IkiWiki/Plugin/passwordauth.pm')
-rw-r--r--IkiWiki/Plugin/passwordauth.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/passwordauth.pm b/IkiWiki/Plugin/passwordauth.pm
index 35ebd961f..c167f52b5 100644
--- a/IkiWiki/Plugin/passwordauth.pm
+++ b/IkiWiki/Plugin/passwordauth.pm
@@ -329,7 +329,7 @@ sub formbuilder (@) {
elsif ($form->title eq "preferences") {
if ($form->submitted eq "Save Preferences" && $form->validate) {
my $user_name=$form->field('name');
- if ($form->field("password") && length $form->field("password")) {
+ if (defined $form->field("password") && length $form->field("password")) {
setpassword($user_name, $form->field('password'));
}
}