diff options
| author | Gabriel Arakaki Giovanini <mail@gabrielgio.me> | 2023-09-12 18:37:30 +0200 | 
|---|---|---|
| committer | Gabriel Arakaki Giovanini <mail@gabrielgio.me> | 2023-09-12 18:40:00 +0200 | 
| commit | ae10e121875982d6956d6bff453544cc59a75616 (patch) | |
| tree | 9b6508c9b2a105ce3027bb24342916050e2f50cc /templates/user.qtpl | |
| parent | d33ba9ee675eedf47ce4a7977d116bf81dda5b2e (diff) | |
| download | lens-ae10e121875982d6956d6bff453544cc59a75616.tar.gz lens-ae10e121875982d6956d6bff453544cc59a75616.tar.bz2 lens-ae10e121875982d6956d6bff453544cc59a75616.zip | |
feat: Add admin control
Now only admins can access settings.
Diffstat (limited to 'templates/user.qtpl')
| -rw-r--r-- | templates/user.qtpl | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/templates/user.qtpl b/templates/user.qtpl index 6ec783d..6fc3ce6 100644 --- a/templates/user.qtpl +++ b/templates/user.qtpl @@ -13,7 +13,7 @@ type UserPage struct {  {% func (p *UserPage) Content() %}  <h1>Initial Setup</h1> -<form action="/users/" method="post"> +<form action="/users" method="post">      {% if p.ID != nil %}       <input type="hidden" name="userId" value="{%s FromUInttoString(p.ID) %}" />      {% endif %} @@ -41,7 +41,7 @@ type UserPage struct {      <div class="field">          <label class="label">Is Admin?</label>          <div class="control"> -            <input type="checkbox" name="isAdmin" type="password" {% if p.IsAdmin %}checked{% endif %}> +            <input type="checkbox" name="isAdmin" {% if p.IsAdmin %}checked{% endif %}>          </div>      </div>      <div class="field"> | 
