From 2e37faa78bb9963f38caefa6d59336e1bd4447ef Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Wed, 28 Nov 2007 22:35:52 +0000 Subject: Bug 353995: Make checksetup able to reset a user's password Patch By Max Kanat-Alexander (module owner) a=mkanat --- checksetup.pl | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'checksetup.pl') diff --git a/checksetup.pl b/checksetup.pl index f1cf9e224..b8f9e325b 100755 --- a/checksetup.pl +++ b/checksetup.pl @@ -66,7 +66,8 @@ $ENV{'HTTP_ACCEPT_LANGUAGE'} ||= setlocale(LC_CTYPE); my %switch; GetOptions(\%switch, 'help|h|?', 'check-modules', 'no-templates|t', - 'verbose|v|no-silent', 'make-admin=s'); + 'verbose|v|no-silent', 'make-admin=s', + 'reset-password=s'); # Print the help message if that switch was selected. pod2usage({-verbose => 1, -exitval => 1}) if $switch{'help'}; @@ -212,6 +213,9 @@ Bugzilla::Install::update_settings(); Bugzilla::Install::make_admin($switch{'make-admin'}) if $switch{'make-admin'}; Bugzilla::Install::create_admin(); +Bugzilla::Install::reset_password($switch{'reset-password'}) + if $switch{'reset-password'}; + ########################################################################### # Create default Product and Classification ########################################################################### @@ -240,6 +244,7 @@ checksetup.pl - A do-it-all upgrade and installation script for Bugzilla. ./checksetup.pl [--help|--check-modules] ./checksetup.pl [SCRIPT [--verbose]] [--no-templates|-t] [--make-admin=user@domain.com] + [--reset-password=user@domain.com] =head1 OPTIONS @@ -267,6 +272,11 @@ Makes the specified user into a Bugzilla administrator. This is in case you accidentally lock yourself out of the Bugzilla administrative interface. +=item B<--reset-password>=user@domain.com + +Resets the specified user's password. checksetup.pl will prompt you to +enter a new password for the user. + =item B<--no-templates> (B<-t>) Don't compile the templates at all. Existing compiled templates will -- cgit v1.2.3-24-g4f1b