aboutsummaryrefslogtreecommitdiff
path: root/templates/token.go
blob: 270055b26285c5de6840df1659a6c94daffbc620 (plain)
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
package templates

// Token is the page users see when authenticated.
const Token = `<html>
  <head>
    <title>YOUR TOKEN!</title>
    <style>
      <!--
      body {
        text-align: center;
        font-family: sans-serif;
        background-color: #edece4;
        margin-top: 120px;
      }
      .code {
        background-color: #26292B;
        border: none;
        color: #fff;
        font-family: monospace;
        font-size: 13;
        font-weight: bold;
        height: auto;
        margin: 12px 12px 12px 12px;
        padding: 24px 12px 12px 12px;
        resize: none;
        text-align: center;
        width: 960px;
      }
      ::selection {
        background: #32d0ff;
        color: #000;
      }
      ::-moz-selection {
        background: #32d0ff;
        color: #000;
      }
      -->
    </style>
  </head>
  <body>
    <h2>
      This is your token. There are many like it but this one is yours.
    </h2>
    <textarea class="code" readonly spellcheck="false" onclick="this.focus();this.select();">{{.Token}}</textarea>
    <h2>
      The token will expire in &lt; 1 hour.
    </h2>
  </body>
</html>`