always forget to add the new file

This commit is contained in:
Ted Unangst 2019-05-14 19:19:18 -04:00
parent 94fd2347c9
commit b6e583de30
1 changed files with 23 additions and 0 deletions

23
views/account.html Normal file
View File

@ -0,0 +1,23 @@
{{ template "header.html" . }}
<main>
<div class="info">
<p>account
<p><a href="/logout?CSRF={{ .LogoutCSRF }}">logout</a></p>
<div>
<form id="aboutform" action="/saveuser" method="POST">
<p>about
<input type="hidden" name="CSRF" value="{{ .UserCSRF }}">
<p><textarea name="whatabout">{{ .WhatAbout }}</textarea>
<p><input type="submit" value="update">
</form>
</div>
<div>
<form action="/chpass" method="POST">
<input type="hidden" name="CSRF" value="{{ .LogoutCSRF }}">
<p>change password
<p><input tabindex=1 type="password" name="oldpass"> - oldpass
<p><input tabindex=1 type="password" name="newpass"> - newpass
<p><input type="submit" value="update">
</form>
</div>
</main>