This commit is contained in:
23
custom_auth/templates/custom_auth/upload_ssh_key.html
Normal file
23
custom_auth/templates/custom_auth/upload_ssh_key.html
Normal file
@ -0,0 +1,23 @@
|
||||
{% extends "components/base.html" %}
|
||||
|
||||
{% block main_area %}
|
||||
<h1>Upload SSH Private Key</h1>
|
||||
|
||||
<form method="POST">
|
||||
{% csrf_token %}
|
||||
{{ form.as_p }}
|
||||
<button type="submit" class="btn btn-primary">Upload</button>
|
||||
</form>
|
||||
|
||||
<!-- 복호화된 SSH Key 표시 -->
|
||||
{% if decrypted_key %}
|
||||
<hr>
|
||||
<p class="text-muted mt-4">Upload 클릭 후 이전 SSH Key가 업데이트 됩니다.</p>
|
||||
<h3>Stored SSH Private Key (Decrypted)</h3>
|
||||
<pre class="bg-light p-3">{{ decrypted_key }}</pre>
|
||||
{% else %}
|
||||
<!-- <p class="text-muted mt-4">No SSH Private Key stored.</p> -->
|
||||
<p class="text-muted mt-4">Upload 클릭 후 이전 SSH Key가 업데이트 됩니다.</p>
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
Reference in New Issue
Block a user