@@ -, +, @@
- Try with and without the option switch
- Notice the randomly generated password is always strongest than what
- Sign off
---
debian/docs/koha-reset-passwd.xml | 15 ++++++++++++--
debian/scripts/koha-reset-passwd | 33 ++++++++++++++++++++++++++++---
misc/admin/set_password.pl | 5 ++++-
3 files changed, 47 insertions(+), 6 deletions(-)
--- a/debian/docs/koha-reset-passwd.xml
+++ a/debian/docs/koha-reset-passwd.xml
@@ -23,14 +23,25 @@
- koha-reset-passwd instancename username
+ koha-reset-passwd [--skip_validation]instancename username
Description
Reset password for a user in a Koha instance.
-
+
+ Options
+
+
+
+
+ If specified, no password enforcement policies will the applied.
+
+
+
+
+
See also
koha-dump-defaults(8)
--- a/debian/scripts/koha-reset-passwd
+++ a/debian/scripts/koha-reset-passwd
@@ -34,7 +34,10 @@ usage()
cat < \$help,
'userid=s' => \$userid,
'password=s' => \$password,
'patron_id=s' => \$patron_id,
'cardnumber=s' => \$cardnumber,
+ 'skip_validation' => \$skip_validation
);
pod2usage(1) if $help;
@@ -62,7 +65,7 @@ unless ( $patrons->count > 0 ) {
}
my $patron = $patrons->next;
-$patron->set_password({ password => $password, skip_validation => 1 });
+$patron->set_password({ password => $password, skip_validation => $skip_validation });
=head1 NAME
--