MISP/app/View/AuthKeys/authkey_display.ctp

29 lines
1.7 KiB
Plaintext
Raw Normal View History

2020-10-20 01:48:04 +02:00
<?php
if ($ajax) {
?>
<div id="genericModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="genericModalLabel" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="genericModalLabel"><?= __('Auth key created'); ?></h3>
2020-10-20 01:48:04 +02:00
</div>
<div class="modal-body modal-body-long">
<p><?= __('Please make sure that you note down the auth key below, this is the only time the auth key is shown in plain text, so make sure you save it. If you lose the key, simply remove the entry and generate a new one.'); ?></p>
<p><?=__('MISP will use the first and the last 4 characters for identification purposes.')?></p>
<pre class="quickSelect"><?= h($entity['AuthKey']['authkey_raw']) ?></pre>
2020-10-20 01:48:04 +02:00
</div>
<div class="modal-footer">
<a href="<?= h($referer) ?>" class="btn btn-primary"><?= __('I have noted down my key, take me back now') ?></a>
2020-10-20 01:48:04 +02:00
</div>
</div>
<?php
} else {
?>
<h4><?= __('Auth key created'); ?></h4>
<p><?= __('Please make sure that you note down the auth key below, this is the only time the auth key is shown in plain text, so make sure you save it. If you lose the key, simply remove the entry and generate a new one.'); ?></p>
<p><?=__('MISP will use the first and the last 4 characters for identification purposes.')?></p>
<pre class="quickSelect"><?= h($entity['AuthKey']['authkey_raw']) ?></pre>
<a href="<?= h($referer) ?>" class="btn btn-primary"><?= __('I have noted down my key, take me back now') ?></a>
2020-10-20 01:48:04 +02:00
<?php
}
?>