]> git.gir.st - subscriptionfeed.git/blob - app/templates/account_mgmt.html.j2
makefile: automatically generate hmac secrets for config.ini
[subscriptionfeed.git] / app / templates / account_mgmt.html.j2
1 {% extends "base.html.j2" %}
2 {% import 'macros.imp.j2' as macros %}
3
4 {% block title %}Account Management{% endblock %}
5
6 {% block content %}
7 {{ super() }}
8 <form method=POST>
9 <fieldset><legend>Change Password</legend>
10 <label>Current:<input name=oldpasswd type=password></label><br>
11 <label>New Password:<input name=newpasswd type=password></label><br>
12 <button name=action value="chpwd">Update</button>
13 </fieldset>
14 </form>
15 <form method=POST>
16 <fieldset><legend>Login Token</legend>
17 <p>You can append <code>?token=...</code> to any URL to
18 automatically log you in. Generating a new token will
19 invalidate the old one, but keep logged in sessions alive.</p>
20 <label>Token:<input value="{{ login_token }}" name=token type=text readonly></label><br>
21 <button name=action value="chtok">Generate New</button>
22 </fieldset>
23 </form>
24 {% if current_user.admin %}
25 <h1>Administration</h1>
26 <form method=POST>
27 <fieldset><legend>Create User</legend>
28 <p>Sets up a new user account using a default password.</p>
29 <label>New Username:<input name=user type=text></label><br>
30 <label>Default Password:<input value="{{ random_pwd }}" name=pass type=text></label><br>
31 <label>Make Admin:<input name=admin value=yes type=checkbox></label><br>
32 <button name=action value="addusr">Add User</button>
33 </fieldset>
34 </form>
35 {% endif %}
36 {% endblock %}
Imprint / Impressum