~sircmpwn/meta.sr.ht

ref: 72548bd7545f78670878667674cc7645835a17bd meta.sr.ht/metasrht/templates/totp-enable.html -rw-r--r-- 1.2 KiB
72548bd7Drew DeVault API: Updates per core-go auth changes 1 year, 1 month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{% extends "meta.html" %}
{% block title %}
<title>Configure TOTP authentication - {{cfg("sr.ht", "site-name")}} meta</title>
{% endblock %}
{% block content %}
<div class="row">
  <section class="col-md-8 offset-md-2">
    <h3>Enable TOTP authentication</h3>
    <p>
      Scan this QR code with an app such as
      <a
        href="https://f-droid.org/en/packages/org.shadowice.flocke.andotp/"
        target="_blank"
      >andOTP</a> and enter the generated TOTP code to enable TOTP on your
      account.
    </p>
    <div class="col-md-12 text-centered">
      <img src="{{qrcode}}" alt="{{secret}}" title="{{otpauth_uri}}"/><br>
      <a href="{{otpauth_uri}}"><small>{{otpauth_uri}}</small></a>
    </div>
    <form method="POST" action="/security/totp/enable">
      {{csrf_token()}}
      <input type="hidden" name="secret" value="{{secret}}" />
      <div class="form-group">
        <input
          type="text"
          id="code"
          name="code"
          class="form-control {{valid.cls("code")}}"
          placeholder="123456" />
        {{valid.summary("code")}}
      </div>
      <button type="submit" class="btn btn-primary pull-right">
        Enable {{icon("caret-right")}}
      </button>
    </form>
  </section>
</div>
{% endblock %}