From 0aae32a346f49cfcc160cd5e9f02b496ff4a1954 Mon Sep 17 00:00:00 2001 From: Phil Renaud Date: Fri, 28 Apr 2023 13:46:10 -0400 Subject: [PATCH] Move the token JWT console log out of an interator (#17010) --- .changelog/17010.txt | 3 +++ ui/mirage/scenarios/default.js | 9 +++++---- 2 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 .changelog/17010.txt diff --git a/.changelog/17010.txt b/.changelog/17010.txt new file mode 100644 index 000000000..2f169aed2 --- /dev/null +++ b/.changelog/17010.txt @@ -0,0 +1,3 @@ +```release-note:bug +ui: fix a mirage-only issue where our mock token logs repeated unnecessarily +``` diff --git a/ui/mirage/scenarios/default.js b/ui/mirage/scenarios/default.js index c9d1140f3..14334d40c 100644 --- a/ui/mirage/scenarios/default.js +++ b/ui/mirage/scenarios/default.js @@ -664,11 +664,12 @@ Secret: ${token.secretId} Accessor: ${token.accessorId} `); - - console.log( - 'Alternatively, log in with a JWT. If it ends with `management`, you have full access. If it ends with `bad`, you`ll get an error. Otherwise, you`ll get a token with limited access.' - ); }); + + console.log( + 'Alternatively, log in with a JWT. If it ends with `management`, you have full access. If it ends with `bad`, you`ll get an error. Otherwise, you`ll get a token with limited access.' + ); + console.log('====================================='); } function getConfigValue(variableName, defaultValue) {