git.alexw.nyc home about git garden
    1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27
   28
   29
   30
   31
   32
   33
   34
   35
   36
   37
   38
   39
   40
   41
   42
   43
   44
   45
   46
   47
   48
   49
   50
   51
   52
   53
   54
   55
   56
   57
{{template "header" .}}
<h1>My Account</h1>
{{template "nav.html" .}}
<br>
<form action="/me" method="post">
  <div>
    <label for="username">Username</label><br>
    <em >Note: renaming your account will cause links to your pages to break</em>
    <input
      id="username"
      name="username"
      size="32"
      type="text"
      value="{{.AuthUser.Username}}"
    />
  </div>
  <div>
    <label for="email">Email</label><br>
    <input id="email" name="email" size="32" type="text" value="{{.MyUser.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" value="{{.MyUser.Domain}}"/> 
    </details>
  </div>
  <div class="error">{{ range .Errors}}{{.}}<br>{{end}} </div>
  <div>
    <input
      class="button"
      id="submit"
      name="submit"
      type="submit"
      value="Save"
    />
  </div>
</form>
<br>
<a href="https://www.patreon.com/alexwennerberg">Become a Flounder Gold member</a> (This won't add any features but will help me maintain the site)
<br>
<a href="/reset-password">Reset password</a>
<p><a href="/my_site/flounder-archive.zip">🗄️ Download my site archive (.zip)</a></p>
<details>
  <summary>Delete Account</summary>
  <form action="/delete-account" method="POST">
<label for="validate-delete">Type in your username to delete your account:</label>
<input id="validate-delete" name="validate-delete" size="32" type="text" value="" />
<input
  class="button delete"
  type="submit"
  value="Delete account"
  onclick="return confirm('Are you SURE you want to delete your account and all your files?');"
/>
</form>
</details>
{{template "footer" .}}