summaryrefslogtreecommitdiff
path: root/templates/changepw.html
diff options
context:
space:
mode:
authorMarkus Krogh <markus@nordu.net>2018-06-08 14:19:46 +0200
committerMarkus Krogh <markus@nordu.net>2018-06-08 14:19:46 +0200
commit8b7180f770d0cd63c8a3626f35ce6d8c06f54db4 (patch)
tree1fab6ac8a80c7c8020d8cba2678e73b7b9248d03 /templates/changepw.html
parent494303236fb55530a0f9e756babf2a79e4267a61 (diff)
Adding basepath and password strength
Diffstat (limited to 'templates/changepw.html')
-rw-r--r--templates/changepw.html7
1 files changed, 4 insertions, 3 deletions
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 }}