summaryrefslogtreecommitdiffstats
path: root/checksetup.pl
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2007-11-28 23:35:52 +0100
committermkanat%bugzilla.org <>2007-11-28 23:35:52 +0100
commit2e37faa78bb9963f38caefa6d59336e1bd4447ef (patch)
tree0034f5ee195d88f910d15b8f80f57ac2fb5be79f /checksetup.pl
parentc031e0bf0b505e711e48dbe71dd248326e9e77f3 (diff)
downloadbugzilla-2e37faa78bb9963f38caefa6d59336e1bd4447ef.tar.gz
bugzilla-2e37faa78bb9963f38caefa6d59336e1bd4447ef.tar.xz
Bug 353995: Make checksetup able to reset a user's password
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> (module owner) a=mkanat
Diffstat (limited to 'checksetup.pl')
-rwxr-xr-xchecksetup.pl12
1 files changed, 11 insertions, 1 deletions
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