From 1703f85cd9ad9eb83bc0fe943b71f42a4c1e0fef Mon Sep 17 00:00:00 2001 From: iglocska Date: Fri, 13 Nov 2020 12:56:02 +0100 Subject: [PATCH] chg: [automation] page updated to accomodate new authkey system - since the API keys can no longer be retrieved, point the user to where they can manage their keys --- app/View/Events/automation.ctp | 40 +++++++++++++++++++++++----------- 1 file changed, 27 insertions(+), 13 deletions(-) diff --git a/app/View/Events/automation.ctp b/app/View/Events/automation.ctp index c1b81f9f3..bbc438653 100644 --- a/app/View/Events/automation.ctp +++ b/app/View/Events/automation.ctp @@ -1,3 +1,6 @@ +

%s. You can %s this key.', - $me['authkey'], - $this->Form->postLink( - __('reset'), - array('controller' => 'users', 'action' => 'resetauthkey', 'me'), - array('div' => false) - ) - ); + if (empty(Configure::read('Security.advanced_authkeys'))) { + echo __( + 'Your current key is: %s. You can %s this key.', + $me['authkey'], + $this->Form->postLink( + __('reset'), + array('controller' => 'users', 'action' => 'resetauthkey', 'me'), + array('div' => false) + ) + ); + } else { + echo __( + 'You can view and manage your API keys under your profile, found %s', + sprintf( + '%s', + $baseurl, + __('here') + ) + ); + } ?> JSON:

@@ -138,7 +152,7 @@

XML:

@@ -303,7 +317,7 @@ URL:
Headers: