aboutsummaryrefslogtreecommitdiffstats
path: root/internal/web/templates/dashboard/password.html
diff options
context:
space:
mode:
Diffstat (limited to 'internal/web/templates/dashboard/password.html')
-rw-r--r--internal/web/templates/dashboard/password.html13
1 files changed, 13 insertions, 0 deletions
diff --git a/internal/web/templates/dashboard/password.html b/internal/web/templates/dashboard/password.html
new file mode 100644
index 0000000..f333bd7
--- /dev/null
+++ b/internal/web/templates/dashboard/password.html
@@ -0,0 +1,13 @@
+{{define "title"}}Change password ยท Blogspace{{end}}
+{{define "content"}}
+<div class="card narrow">
+ <h1>Change password</h1>
+ <form method="post" action="/account/password">
+ <input type="hidden" name="_csrf" value="{{.CSRF}}">
+ <label>Current password<br><input type="password" name="current" required autocomplete="current-password"></label>
+ <label>New password<br><input type="password" name="password" required minlength="8" autocomplete="new-password"></label>
+ <label>Repeat new password<br><input type="password" name="password2" required minlength="8" autocomplete="new-password"></label>
+ <button type="submit">Change password</button>
+ </form>
+</div>
+{{end}}