|
4 | 4 | <HoverCopyButton @copyValue={{encoded_token}} /> |
5 | 5 | <div class="message-body"> |
6 | 6 | <h4 class="title is-7 is-marginless"> |
7 | | - {{#if otp}} |
8 | | - Encoded Operation Token |
9 | | - {{else}} |
10 | | - Encrypted Operation Token |
11 | | - {{/if}} |
| 7 | + Encoded Operation Token |
12 | 8 | </h4> |
13 | 9 | <code class="is-word-break">{{encoded_token}}</code> |
14 | 10 | </div> |
|
23 | 19 | <code class="is-word-break">{{otp}}</code> |
24 | 20 | </div> |
25 | 21 | </div> |
| 22 | + {{/if}} |
26 | 23 | <div class="message is-list has-copy-button" tabindex="-1"> |
27 | | - {{#let |
28 | | - (concat 'vault operator generate-root -dr-token -otp="' otp '" -decode="' encoded_token '"') |
29 | | - as |cmd|}} |
| 24 | + {{#let (if otp |
| 25 | + (concat 'vault operator generate-root -otp="' otp '" -decode="' encoded_token '"') (concat 'vault operator generate-root -otp="<enter your otp here>" -decode="' encoded_token '"') ) as |cmd|}} |
30 | 26 | <HoverCopyButton @copyValue={{cmd}} /> |
31 | 27 | <div class="message-body"> |
32 | 28 | <h4 class="title is-7 is-marginless"> |
|
36 | 32 | </div> |
37 | 33 | {{/let}} |
38 | 34 | </div> |
39 | | - {{/if}} |
40 | 35 | </div> |
41 | 36 | <div class="box is-marginless is-shadowless"> |
42 | 37 | <button type="button" class="button" {{action 'reset'}}> |
|
131 | 126 | </div> |
132 | 127 | {{/if}} |
133 | 128 | <div class="box is-shadowless is-marginless no-padding-top is-fullwidth" data-test-form-text> |
| 129 | + {{#if otp}} |
| 130 | + <p> |
| 131 | + <AlertBanner @type="info" @message="Below is the generated OTP. This will be used to encode the generated Operation Token. Make sure to save this, as you will need it later to decode the Operation Token." /> |
| 132 | + </p> |
| 133 | + <div class="message is-list has-copy-button" tabindex="-1"> |
| 134 | + <HoverCopyButton @copyValue={{otp}} /> |
| 135 | + <div class="message-body"> |
| 136 | + <h4 class="title is-7 is-marginless"> |
| 137 | + One Time Password (otp) |
| 138 | + </h4> |
| 139 | + <code class="is-word-break">{{otp}}</code> |
| 140 | + </div> |
| 141 | + </div> |
| 142 | + {{/if}} |
134 | 143 | {{#if (has-block)}} |
135 | 144 | {{yield}} |
136 | 145 | {{else if formText}} |
|
0 commit comments