diff options
author | Markus Krogh <markus@nordu.net> | 2018-06-08 14:19:46 +0200 |
---|---|---|
committer | Markus Krogh <markus@nordu.net> | 2018-06-08 14:19:46 +0200 |
commit | 8b7180f770d0cd63c8a3626f35ce6d8c06f54db4 (patch) | |
tree | 1fab6ac8a80c7c8020d8cba2678e73b7b9248d03 /templates | |
parent | 494303236fb55530a0f9e756babf2a79e4267a61 (diff) |
Adding basepath and password strength
Diffstat (limited to 'templates')
-rw-r--r-- | templates/change_ssh.html | 2 | ||||
-rw-r--r-- | templates/changepw.html | 7 | ||||
-rw-r--r-- | templates/index.html | 10 | ||||
-rw-r--r-- | templates/layout/base.html | 6 |
4 files changed, 13 insertions, 12 deletions
diff --git a/templates/change_ssh.html b/templates/change_ssh.html index 96231a7..f87afce 100644 --- a/templates/change_ssh.html +++ b/templates/change_ssh.html @@ -27,6 +27,6 @@ </form> <div class="column full"> - <a href=".">Back</a> + <a href="{{.BasePath}}/">Back</a> </div> {{ end }} diff --git a/templates/changepw.html b/templates/changepw.html index a7c1dc6..207ce7e 100644 --- a/templates/changepw.html +++ b/templates/changepw.html @@ -12,10 +12,10 @@ <br> {{ .CsrfField }} <label class="form-element-wrapper">New password - <input type="password" name="new_password" class="form-element form-field" /> + <input id="new_password" type="password" name="new_password" class="form-element form-field" data-password-strength /> </label> <label class="form-element-wrapper">Repeat password - <input type="password" name="new_password_again" class="form-element form-field" /> + <input type="password" name="new_password_again" class="form-element form-field" data-same-as="new_password" /> </label> <div class="form-element-wrapper"> <input type="submit" value="Change password" class="form-element form-button" /> @@ -23,6 +23,7 @@ </form> <div class="column full"> - <a href=".">Back</a> + <a href="{{.BasePath}}/">Back</a> </div> + <script src="{{.BasePath}}/static/js/password_strength.js"></script> {{ end }} diff --git a/templates/index.html b/templates/index.html index 218ffe2..afadf8b 100644 --- a/templates/index.html +++ b/templates/index.html @@ -17,24 +17,24 @@ <h3>Available actions</h3> <ul class="unstyled"> <li> - <a href="sso"><span class="item-marker">›</span> Change single sign on (SSO) password</a> + <a href="{{$.BasePath}}/changepw/sso/"><span class="item-marker">›</span> Change single sign on (SSO) password</a> </li> {{ if .Staff }} <li> - <a href="tacacs"><span class="item-marker">›</span> Change TACACS password</a> + <a href="{{$.BasePath}}/changepw/tacacs/"><span class="item-marker">›</span> Change TACACS password</a> </li> {{ end }} {{ if .Active }} <li> - <a href="eduroam"><span class="item-marker">›</span> Change eduroam password</a> + <a href="{{$.BasePath}}/changepw/eduroam/"><span class="item-marker">›</span> Change eduroam password</a> </li> {{ end }} {{ if .Staff }} <li> - <a href="pubkeys"><span class="item-marker">›</span> Update your public SSH keys</a> + <a href="{{$.BasePath}}/pubkeys/"><span class="item-marker">›</span> Update your public SSH keys</a> </li> <li> - <a href="ideviceconf" rel="external"><span class="item-marker">›</span> Configure eduroam on your iDevice</a> + <a href="{{$.BasePath}}/ideviceconf" rel="external"><span class="item-marker">›</span> Configure eduroam on your iDevice</a> </li> {{ end }} </ul> diff --git a/templates/layout/base.html b/templates/layout/base.html index f041321..95a1c86 100644 --- a/templates/layout/base.html +++ b/templates/layout/base.html @@ -5,14 +5,14 @@ <meta charset="utf-8"> <meta name="viewport" content="width=device-width,initial-scale=1.0"> <title>{{block "title" .}}SSO Password Manager{{end}}</title> - <link rel="stylesheet" type="text/css" href="static/css/main.css"> - <link href="static/images/favicon.ico" rel="shortcut icon" type="image/vnd.microsoft.icon"> + <link rel="stylesheet" type="text/css" href="{{.BasePath}}/static/css/main.css"> + <link href="{{.BasePath}}/static/images/favicon.ico" rel="shortcut icon" type="image/vnd.microsoft.icon"> </head> <body> <div class="wrapper"> <header> <div class="container"> - <img src="static/images/nordunet.png" alt="NORDUnet Nordic Gateway for Research and Education"> + <img src="{{.BasePath}}/static/images/nordunet.png" alt="NORDUnet Nordic Gateway for Research and Education"> </div> </header> <div class="container flex-group"> |