mirror of
https://github.com/webmin/webmin.git
synced 2025-07-23 00:30:33 +00:00
Cannot reset password if you're logged in
This commit is contained in:
@ -10,6 +10,7 @@ $trust_unknown_referers = 1;
|
|||||||
$gconfig{'forgot_pass'} || &error($text{'forgot_ecannot'});
|
$gconfig{'forgot_pass'} || &error($text{'forgot_ecannot'});
|
||||||
my $forgot_timeout = 10;
|
my $forgot_timeout = 10;
|
||||||
&error_setup($text{'forgot_err'});
|
&error_setup($text{'forgot_err'});
|
||||||
|
$remote_user && &error($text{'forgot_elogin'});
|
||||||
|
|
||||||
# Check that the random ID is valid
|
# Check that the random ID is valid
|
||||||
$in{'id'} =~ /^[a-f0-9]+$/i || &error($text{'forgot_eid'});
|
$in{'id'} =~ /^[a-f0-9]+$/i || &error($text{'forgot_eid'});
|
||||||
|
@ -6,7 +6,10 @@ use WebminCore;
|
|||||||
$no_acl_check++;
|
$no_acl_check++;
|
||||||
&init_config();
|
&init_config();
|
||||||
&ReadParse();
|
&ReadParse();
|
||||||
|
|
||||||
|
&error_setup($text{'forgot_err'});
|
||||||
$gconfig{'forgot_pass'} || &error($text{'forgot_ecannot'});
|
$gconfig{'forgot_pass'} || &error($text{'forgot_ecannot'});
|
||||||
|
$remote_user && &error($text{'forgot_elogin'});
|
||||||
|
|
||||||
&ui_print_header(undef, $text{'forgot_title'}, "", undef, undef, 1, 1);
|
&ui_print_header(undef, $text{'forgot_title'}, "", undef, undef, 1, 1);
|
||||||
|
|
||||||
|
@ -6,7 +6,10 @@ use WebminCore;
|
|||||||
$no_acl_check++;
|
$no_acl_check++;
|
||||||
&init_config();
|
&init_config();
|
||||||
&ReadParse();
|
&ReadParse();
|
||||||
|
|
||||||
|
&error_setup($text{'forgot_err'});
|
||||||
$gconfig{'forgot_pass'} || &error($text{'forgot_ecannot'});
|
$gconfig{'forgot_pass'} || &error($text{'forgot_ecannot'});
|
||||||
|
$remote_user && &error($text{'forgot_elogin'});
|
||||||
|
|
||||||
# Lookup the Webmin user
|
# Lookup the Webmin user
|
||||||
&foreign_require("acl");
|
&foreign_require("acl");
|
||||||
|
3
lang/en
3
lang/en
@ -164,7 +164,7 @@ forgot_passok=Change Password
|
|||||||
forgot_euser2=Webmin user $1 does not exist!
|
forgot_euser2=Webmin user $1 does not exist!
|
||||||
forgot_esync=The password cannot be changed for this user
|
forgot_esync=The password cannot be changed for this user
|
||||||
forgot_elock=The password for this user is locked
|
forgot_elock=The password for this user is locked
|
||||||
forgot_err=Failed to change password
|
forgot_err=Failed to reset password
|
||||||
forgot_enewpass=No new password entered!
|
forgot_enewpass=No new password entered!
|
||||||
forgot_equality=Password requirements were not met : $1
|
forgot_equality=Password requirements were not met : $1
|
||||||
forgot_wdoing=Changing password for Webmin user $1 ..
|
forgot_wdoing=Changing password for Webmin user $1 ..
|
||||||
@ -175,6 +175,7 @@ forgot_vdoing=Changing password for Virtualmin domain $1 ..
|
|||||||
forgot_udoing=Changing password for Unix user $1 ..
|
forgot_udoing=Changing password for Unix user $1 ..
|
||||||
forgot_eunix=Unix user does not exist!
|
forgot_eunix=Unix user does not exist!
|
||||||
forgot_eunixlock=User user's password is locked!
|
forgot_eunixlock=User user's password is locked!
|
||||||
|
forgot_elogin=Forgotted password pages cannot be used when you are already logged in to Webmin!
|
||||||
|
|
||||||
pam_header=Login to Webmin
|
pam_header=Login to Webmin
|
||||||
pam_mesg=You must respond to the question below to login to Webmin server on $1.
|
pam_mesg=You must respond to the question below to login to Webmin server on $1.
|
||||||
|
Reference in New Issue
Block a user