Bugzilla – Attachment 153647 Details for
Bug 28493
Make koha-passwd display the username
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28493: Make koha-passwd display the username
Bug-28493-Make-koha-passwd-display-the-username.patch (text/plain), 1.37 KB, created by
Jonathan Druart
on 2023-07-19 12:16:42 UTC
(
hide
)
Description:
Bug 28493: Make koha-passwd display the username
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2023-07-19 12:16:42 UTC
Size:
1.37 KB
patch
obsolete
>From e9a677e34d3446fe6a139a5227507ac1b675ef38 Mon Sep 17 00:00:00 2001 >From: Mason James <mtj@kohaaloha.com> >Date: Wed, 21 Sep 2022 23:38:59 +1200 >Subject: [PATCH] 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> >--- > debian/scripts/koha-passwd | 2 ++ > 1 file changed, 2 insertions(+) > >diff --git a/debian/scripts/koha-passwd b/debian/scripts/koha-passwd >index 5be04b40d3f..9c050398a37 100755 >--- a/debian/scripts/koha-passwd >+++ b/debian/scripts/koha-passwd >@@ -45,8 +45,10 @@ EOF > for name in "$@" > do > if is_instance $name ; then >+ user=$(xmlstarlet sel -t -v 'yazgfs/config/user' /etc/koha/sites/$name/koha-conf.xml); > passwd=$(xmlstarlet sel -t -v 'yazgfs/config/pass' /etc/koha/sites/$name/koha-conf.xml); > if [ -t 1 ]; then >+ echo "Username for $name: $user" > echo "Password for $name: $passwd" > echo "Press enter to clear the screen..." > read anykey >-- >2.25.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 28493
:
140813
|
140814
|
140816
| 153647