]> git.koha-community.org Git - koha.git/commit
Bug 28772: Display API secret once
authorTomas Cohen Arazi <tomascohen@theke.io>
Mon, 30 Aug 2021 15:07:56 +0000 (12:07 -0300)
committerVictor Grousset/tuxayo <victor@tuxayo.net>
Mon, 20 Sep 2021 13:50:49 +0000 (15:50 +0200)
commit9a923e0e1896b255f12fe91ec0e45b9ce467c9a7
tree2bb6bcb48bc988c5e0bd76bc58b2bc1b8f5c720e
parent5843cbb3a31a58c94408c9836bcceb27ebe9720f
Bug 28772: Display API secret once

This patch makes the apikeys.pl display the generated API secret once,
when generated. After that, it won't be displayed by the UI.

To test:
1. Generate a new API key
=> FAIL: The secret is displayed in the API keys table
2. Visit some other page, and go back to the API keys page
=> FAIL: The API key secret is there
3. Apply this patch
4. Go to More > Manage API keys
=> SUCCESS: It no longer displays the secret
5. Generate a new API key
=> SUCCESS: The API key details (including the secret) are displayed.
=> SUCCESS: A message telling to copy the secret because it won't be
            displayed again is shown.
6. Repeat 4
=> SUCCESS: The secret is no longer displayed
7. Sign off :-D

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Wainui Witika-Park <wainuiwitikapark@catalyst.net.nz>
(cherry picked from commit ce8e29e50ac260c1dc0c2ea5d46b27bb547acd1c)
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
koha-tmpl/intranet-tmpl/prog/en/modules/members/apikeys.tt
members/apikeys.pl