Update templates, db schema
alex wennerberg alex@alexwennerberg.com
Sat, 09 Jan 2021 14:16:25 -0800
2 files changed,
12 insertions(+),
2 deletions(-)
M
db.go
→
db.go
@@ -179,7 +179,9 @@ password_hash TEXT NOT NULL,
reference TEXT NOT NULL default "", active boolean NOT NULL DEFAULT false, admin boolean NOT NULL DEFAULT false, - created_at INTEGER DEFAULT (strftime('%s', 'now')) + created_at INTEGER DEFAULT (strftime('%s', 'now')), + domain TEXT, + domain_enabled BOOLEAN NOT NULL DEFAULT false ); CREATE TABLE IF NOT EXISTS cookie_key (
M
templates/me.html
→
templates/me.html
@@ -1,10 +1,11 @@
{{template "header" .}} <h1>My Account</h1> {{template "nav.html" .}} +<br> <form action="/me" method="post"> <div> <label for="username">Username</label><br> - <div class="footer">Note: renaming your account will cause links to your pages to break</div> + <em >Note: renaming your account will cause links to your pages to break</em> <input id="username" name="username"@@ -16,6 +17,13 @@ </div>
<div> <label for="email">Email</label><br> <input id="email" name="email" size="32" type="text" value="{{.Email}}" /> + </div> + <div> + <details> + <summary><label for="domain">Custom domain</label></summary> + <em>For more information on setting up a custom domain, see <a href="https://admin.flounder.online/custom-domains.gmi">Custom Domains</a></em> + <input id="domain" name="domain" size="32" type="text" /> enabled/disabled + </details> </div> <div class="error">{{ range .Errors}}{{.}}<br>{{end}} </div> <div>