Fix Webmin user temp password change
authorJamie Cameron <jcameron@webmin.com>
Sat, 8 Nov 2008 01:46:50 +0000 (01:46 +0000)
committerJamie Cameron <jcameron@webmin.com>
Sat, 8 Nov 2008 01:46:50 +0000 (01:46 +0000)
miniserv.pl
password_form.cgi

index 9d83521..ce2a469 100755 (executable)
@@ -1567,8 +1567,7 @@ if (%users) {
 
        # Check for a visit to the special password change page
        if ($config{'session'} && !$deny_authentication &&
-           $page eq $config{'password_change'} && !$validated &&
-           $config{'passwd_mode'} == 2) {
+           $page eq $config{'password_change'} && !$validated) {
                # Just let this slide ..
                $validated = 1;
                $miniserv_internal = 3;
index 7914de3..093cde3 100755 (executable)
@@ -23,7 +23,7 @@ print &ui_form_start("$gconfig{'webprefix'}/password_change.cgi", "post");
 print &ui_hidden("user", $in{'user'});
 print &ui_hidden("pam", $in{'pam'});
 print &ui_hidden("expired", $in{'expired'});
-print &ui_table_start($text{'password_header'}, "width=50% style='width:50%'", 2);
+print &ui_table_start($text{'password_header'}, undef, 2);
 
 # Current username
 print &ui_table_row($text{'password_user'},