Merge pull request #103 from pinterest/autocomplete-off-and-required-textarea

Set autocomplete=off on form to avoid back history; make textarea field required
This commit is contained in:
Nicholas Charriere 2019-06-01 11:56:02 -07:00 committed by GitHub
commit f0f2c9d5d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,11 +5,11 @@
<section> <section>
<div class="page-header"><h1>Set Secret</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" autocomplete="off">
<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>
<textarea rows="10" cols="50" id="password" name="password" autofocus="true" class="form-control" placeholder="SnapPass allows you to share secrets in a secure, ephemeral way. Input a single or multi-line secret, its expiration time, and click Generate URL. Share the one-time use URL with your intended recipient." aria-describedby="basic-addon1" autocomplete="off"></textarea> <textarea rows="10" cols="50" id="password" name="password" autofocus="true" class="form-control" placeholder="SnapPass allows you to share secrets in a secure, ephemeral way. Input a single or multi-line secret, its expiration time, and click Generate URL. Share the one-time use URL with your intended recipient." aria-describedby="basic-addon1" autocomplete="off" required></textarea>
</div> </div>
</div> </div>