From a87791e4798b9c7a217c2eefeaa400354f968d16 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Thu, 5 Aug 2021 13:15:42 -0700 Subject: [PATCH] Show useful info about params --- passwd/change_passwd.cgi | 1 + 1 file changed, 1 insertion(+) diff --git a/passwd/change_passwd.cgi b/passwd/change_passwd.cgi index 57c2be6a2..6a7d8a16a 100755 --- a/passwd/change_passwd.cgi +++ b/passwd/change_passwd.cgi @@ -8,6 +8,7 @@ require './passwd-lib.pl'; print "Content-type: text/plain\n\n"; # 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'}); &error_exit($err) if ($err); $in{'user'} || &error_exit("Missing user parameter");