~kline/torgateway

torgateway/templates/index.html -rw-r--r-- 2.3 KiB
9e927583Gareth Pulham Add registration via XML-RPC 1 year, 6 months 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
40
41
42
43
44
45
46
47
48
49
<!doctype html>
<html lang="en">
    <head>
        <!-- Required meta tags -->
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
        <style> body { margin: 0 auto; max-width: 60rem; padding: 0 1rem; } </style>

        <title>Tor Registration Service</title>
    </head>
    <body>
        <h1>Tor Registration Service</h1>

        <p>Below is the Tor Registration Service for freenode. This service allows Tor users to register an account and
        add <a href="https://freenode.net/kb/answer/certfp">CertFP login</a> details.</p>

        <p>To use the service, press the "Start hashing" button to begin to generate a proof of work token. This may
        take some time. While this is happening, you should input your desired freenode username, password, and
        certificate fingerprint. Once all the fields are filled and a token has been generated, you will be able to
        request an account. Don't worry if you receive an error related to registration - if your desired account name
        is unavailable, for example, your generated token will remain valid to retry. You may want to copy down any
        token you see in case you accidentally close the page.</p>

        <p>Instructions on getting your cert fingerprint are listed at the page above.</p>
        
        <hr />

        <div id="progress">Current progress: not yet started.</div>
        <button id="ignition" onclick="run()">Start hashing.</button>

        <form id="account">
          <label for="username">Username:</label>
          <input type="text" id="username" name="username" oninput="checkSubmittable()" />
          <br />
          <label for="password">Password:</label>
          <input type="text" id="password" name="password" oninput="checkSubmittable()" />
          <br />
          <label for="fingerprint">Fingerprint:</label>
          <input type="text" id="fingerprint" name="fingerprint" oninput="checkSubmittable()" />
          <br />
          <label for="token">Token (autofilled):</label>
          <input type="text" id="token" name="token" readonly oninput="checkSubmittable()" />
          <br />
          <input type="button" id="submit" value="Not available yet" />
        </form>
        <p id="message"></p>
        <script src="static/main.js"></script>
    </body>
</html>