]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/passwordauth.pm
web commit by JoshTriplett: Fix typo.
[git.ikiwiki.info.git] / IkiWiki / Plugin / passwordauth.pm
index 86a5ba49e964fd6456a4249e0b82ae4dff9e6c0d..a2e774c36e96c694207ec0505f2faddcdb7bc884 100644 (file)
@@ -189,7 +189,7 @@ sub formbuilder (@) { #{{{
                if ($form->submitted eq "Save Preferences" && $form->validate) {
                        my $user_name=$form->field('name');
                        foreach my $field (qw(password)) {
                if ($form->submitted eq "Save Preferences" && $form->validate) {
                        my $user_name=$form->field('name');
                        foreach my $field (qw(password)) {
-                               if (defined $form->field($field) && length $form->field($field)) {
+                               if (defined $form->field($field)) {
                                        IkiWiki::userinfo_set($user_name, $field, $form->field($field)) ||
                                                error("failed to set $field");
                                }
                                        IkiWiki::userinfo_set($user_name, $field, $form->field($field)) ||
                                                error("failed to set $field");
                                }