Merge pull request #45 from frontfoot/multiline_secrets

Multiline secrets
This commit is contained in:
Nicholas Charriere 2017-01-05 11:37:30 -08:00 committed by GitHub
commit cfc670f1b1
4 changed files with 14 additions and 14 deletions

View file

@ -1,7 +1,7 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<title>Send Password</title> <title>Snappass - Share Secrets</title>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
@ -13,7 +13,7 @@
<nav class="navbar navbar-default navbar-static-top"> <nav class="navbar navbar-default navbar-static-top">
<div class="container"> <div class="container">
<div class="navbar-header"> <div class="navbar-header">
<a class="navbar-brand" href="/">Share Password</a> <a class="navbar-brand" href="/">Share Secret</a>
</div> </div>
</div> </div>
</nav> </nav>

View file

@ -3,8 +3,8 @@
{% block content %} {% block content %}
<div class="container"> <div class="container">
<section> <section>
<div class="page-header"><h1>Share Password Link</h1></div> <div class="page-header"><h1>Share Secret Link</h1></div>
<p>The password has been temporarily saved. Send the following URL to your intended recipient.</p> <p>The secret has been temporarily saved. Send the following URL to your intended recipient.</p>
<div class="row"> <div class="row">
<div class="col-sm-6 margin-bottom-10"> <div class="col-sm-6 margin-bottom-10">
<input type="text" class="form-control" id="password-link" value="{{ password_link }}" readonly="readonly"> <input type="text" class="form-control" id="password-link" value="{{ password_link }}" readonly="readonly">

View file

@ -3,11 +3,11 @@
{% block content %} {% block content %}
<div class="container"> <div class="container">
<section> <section>
<div class="page-header"><h1>Password</h1></div> <div class="page-header"><h1>Secret</h1></div>
<p>Save the following password to a secure location.</p> <p>Save the following secret to a secure location.</p>
<div class="row"> <div class="row">
<div class="col-sm-6 margin-bottom-10"> <div class="col-sm-6 margin-bottom-10">
<input type="text" class="form-control" id="password-text" value="{{ password }}" readonly="readonly"> <textarea class="form-control" rows="10" cols="50" id="password-text" name="password-text" readonly="readonly">{{ password }}</textarea>
</div> </div>
<div class="col-sm-6"> <div class="col-sm-6">
@ -18,7 +18,7 @@
</button> </button>
</div> </div>
</div> </div>
<p>The password has now been permanently deleted from the system, and the URL will no longer work. Refresh this page to verify.</p> <p>The secret has now been permanently deleted from the system, and the URL will no longer work. Refresh this page to verify.</p>
</section> </section>
</div> </div>
{% endblock %} {% endblock %}
@ -26,4 +26,4 @@
{% block js %} {% block js %}
<script src="{{ config.STATIC_URL }}/clipboardjs/clipboard.min.js"></script> <script src="{{ config.STATIC_URL }}/clipboardjs/clipboard.min.js"></script>
<script src="{{ config.STATIC_URL }}/snappass/scripts/clipboard_button.js"></script> <script src="{{ config.STATIC_URL }}/snappass/scripts/clipboard_button.js"></script>
{% endblock %} {% endblock %}

View file

@ -3,13 +3,13 @@
{% block content %} {% block content %}
<div class="container"> <div class="container">
<section> <section>
<div class="page-header"><h1>Set Password</h1></div> <div class="page-header"><h1>Set Secret</h1></div>
<div class="row"> <div class="row">
<form role="form" id="password_create" method="post"> <form role="form" id="password_create" method="post">
<div class="col-sm-6 margin-bottom-10"> <div class="col-sm-6 margin-bottom-10">
<div class="input-group"> <div class="input-group">
<span class="input-group-addon" id="basic-addon1"><span class="glyphicon glyphicon-lock" aria-hidden="true"></span></span> <span class="input-group-addon" id="basic-addon1"><span class="glyphicon glyphicon-lock" aria-hidden="true"></span></span>
<input type="text" id="password" name="password" autofocus="true" class="form-control" placeholder="Password" aria-describedby="basic-addon1" autocomplete="off"> <textarea rows="10" cols="50" id="password" name="password" autofocus="true" class="form-control" placeholder="Password" aria-describedby="basic-addon1" autocomplete="off"></textarea>
</div> </div>
</div> </div>
@ -28,14 +28,14 @@
</div> </div>
<h3>Using SnapPass</h3> <h3>Using SnapPass</h3>
<p>SnapPass allows you to share passwords in a secure, ephemeral way.</p> <p>SnapPass allows you to share secrets in a secure, ephemeral way.</p>
<ol> <ol>
<li>Input a password, its expiration time, and click Generate URL</li> <li>Input a secret, its expiration time, and click Generate URL</li>
<li>Share the <strong>one-time use URL</strong> with your intended recipient</li> <li>Share the <strong>one-time use URL</strong> with your intended recipient</li>
</ol> </ol>
</section> </section>
</div> </div>
{% endblock %} {% endblock %}