]> git.koha-community.org Git - koha.git/commit
Bug 17746: (QA follow-up) Make set_password.pl generate a password if required
authorTomas Cohen Arazi <tomascohen@theke.io>
Wed, 20 Feb 2019 14:26:40 +0000 (11:26 -0300)
committerLucas Gass <lucas@bywatersolutions.com>
Mon, 1 Apr 2019 16:19:30 +0000 (16:19 +0000)
commit9fe361a491ebf82697ab1e4b6d439f218f300623
treeff6249bdc9e783f54e56bbc1a4f76cb210732e15
parentc6651b872421cce5415694fbf173c38a094c1321
Bug 17746: (QA follow-up) Make set_password.pl generate a password if required

This patch makes the set_password.pl script generate the password if it
is not passed as an argument.

It also changes the behaviour of set_password.pl: it will now print the
userid and password (generated or not) to mimick the behaviour from
koha-reset-passwd.

The koha-reset-passwd gets simplified as it doesn't generate the random
password anymore, it passes the responsability to set_password.pl

To test:
- Follow the steps from the original platch
- Verify all behaves as expected

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Liz Rea <wizzyrea@gmail.com>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 3ef48c8708736e9d5b16e462e520302c007cb4c1)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 3b423071227ee3f9300907bb9e89cff26012aa29)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
debian/scripts/koha-reset-passwd
misc/admin/set_password.pl