Fix Webmin user temp password change

This commit is contained in:
Jamie Cameron 2008-11-08 01:46:50 +00:00
parent 9ee964f1e7
commit 1f0e6c5902
2 changed files with 2 additions and 3 deletions

View File

@ -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;

View File

@ -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'},