mirror of
https://github.com/webmin/webmin.git
synced 2025-07-20 16:48:46 +00:00
Show useful info about params
This commit is contained in:
@ -8,6 +8,7 @@ require './passwd-lib.pl';
|
|||||||
print "Content-type: text/plain\n\n";
|
print "Content-type: text/plain\n\n";
|
||||||
|
|
||||||
# Validate inputs
|
# Validate inputs
|
||||||
|
keys(%in) || &error_exit("Required parameters are 'user' (Unix username), 'old' (Old password) and 'new' (New password)");
|
||||||
my $err = &apply_rate_limit($ENV{'REMOTE_ADDR'});
|
my $err = &apply_rate_limit($ENV{'REMOTE_ADDR'});
|
||||||
&error_exit($err) if ($err);
|
&error_exit($err) if ($err);
|
||||||
$in{'user'} || &error_exit("Missing user parameter");
|
$in{'user'} || &error_exit("Missing user parameter");
|
||||||
|
Reference in New Issue
Block a user