summaryrefslogtreecommitdiff
path: root/templates/index.html
blob: 535c4f75ed398d6b8e55f6311e429c0ed4c1c13b (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
{{ define "content" }}
<div class="column">
<h2>SSO Password Manager</h2>
{{with .User}}
  <p>
    Hello {{.DisplayName}},<br>
    Welcome to the single sign on password manager site.
  </p>
  <h3>Your usernames</h3>
  <dl class="flex-container">
    <dt>SSO:</dt>
    <dd>{{ .UserName }}</dd>
    <dt>eduroam:</dt>
    <dd>{{ .UserName }}/ppp@NORDU.NET</dd>
  </dl>
  
  <h3>Available actions</h3>
  <ul class="unstyled">
    <li>
      <a href="{{$.BasePath}}/changepw/sso/"><span class="item-marker">›</span> Change single sign on (SSO) password</a>
    </li>
  {{ if .Staff }}
    <li>
      <a href="{{$.BasePath}}/changepw/tacacs/"><span class="item-marker">›</span> Change TACACS password</a>
    </li>
  {{ end }}
  {{ if .Active }}
    <li>
      <a href="{{$.BasePath}}/changepw/eduroam/"><span class="item-marker">›</span> Change eduroam password</a>
    </li>
  {{ end }}
  {{ if .Staff }}
    <li>
      <a href="{{$.BasePath}}/pubkeys/"><span class="item-marker">›</span> Update your public SSH keys</a>
    </li>
  {{ end }}
  </ul>
  <p>
    <a href="/Shibboleth.sso/Logout">Log out</a>
  </p>
{{ end }}
</div>
{{ end }}