purr

password generation and secret sharing
Log | Files | Refs | README | LICENSE

pw.hamlet (422B)


      1 <div #requestedPw .requestedPw>
      2   $maybe pw <- password
      3     <p .resLink>secret found at <a href="/pw/#{link}">/pw/#{link}</a>:
      4     <h3 .pwResult>#{pw}
      5     <button #secretButton .mainButton onclick="copySecret('#{pw}')">copy secret</button>
      6     <button #linkButton .mainButton onclick="copyLink('#{link}')">copy link</button>
      7   $nothing
      8     <p .resLink>no secret found at 
      9       <br /><a href="/pw/#{link}">/pw/#{link}</a>