The current output looks like this: sudo koha-passwd <site> Password for <site>: abc123 Press enter to clear the screen... But who remembers what the username looks like? It would be helpful to print this too, along with the password. (The format of the username is "koha_<site>".)
Created attachment 140814 [details] [review] Bug 28493: Make koha-passwd display the username to test... 1/ run command $ sudo koha-passwd dev1 Password for dev1: CraZyPa$$WoRD!! Press enter to clear the screen... ^C 2/ apply patch 3/ run command again, note 'username' section $ sudo koha-passwd dev1 Username for dev1: koha_dev1 <<<<<<<<<<<< Password for dev1: CraZyPa$$WoRD!! Press enter to clear the screen... ^C
Created attachment 140816 [details] [review] Bug 28493: Make koha-passwd display the username to test... 1/ run command $ sudo koha-passwd dev1 Password for dev1: CraZyPa$$WoRD!! Press enter to clear the screen... ^C 2/ apply patch 3/ run command again, note 'username' section $ sudo koha-passwd dev1 Username for dev1: koha_dev1 <<<<<<<<<<<< Password for dev1: CraZyPa$$WoRD!! Press enter to clear the screen... ^C Signed-off-by: David Nind <david@davidnind.com>
Testing notes (using KTD): - dev1 = instance name (default for KTD = kohadev) - Had to shut down KTD and restart for the change to appear (flush_memcached, restart_all wasn't enough)
I don't see why this was moved to ASSIGNED after having been signed off - Magnus, could you check?
(In reply to Katrin Fischer from comment #5) > I don't see why this was moved to ASSIGNED after having been signed off - > Magnus, could you check? Dunno, setting it back to signed off.
Created attachment 153647 [details] [review] Bug 28493: Make koha-passwd display the username to test... 1/ run command $ sudo koha-passwd dev1 Password for dev1: CraZyPa$$WoRD!! Press enter to clear the screen... ^C 2/ apply patch 3/ run command again, note 'username' section $ sudo koha-passwd dev1 Username for dev1: koha_dev1 <<<<<<<<<<<< Password for dev1: CraZyPa$$WoRD!! Press enter to clear the screen... ^C Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Pushed to master for 23.11. Nice work everyone, thanks!
Small enhancement, Pushed to 23.05.x for 23.05.03
Nice work everyone! Pushed to 22.11.x for next release
Backported to 22.05.x for upcoming 22.05.16