Login
4 branches 0 tags
Ben (U939/Arch Linux) Added minimal password standards 4f8a8c3 1 month ago 22 Commits
rubhub / templates / settings.html
<!DOCTYPE html>
<html>
<head>
    <title>Settings</title>
</head>
<body>
    <section>
        <h1>User settings</h1>
        <p>Update your username, email, and SSH public keys.</p>
        {% match message %}
            {% when Some with (msg) %}
                <div class="message" role="status">{{ msg }}</div>
            {% when None %}
        {% endmatch %}
        <form method="post" action="/settings" class="stack card simple-form">
            <input type="hidden" name="_csrf" value="{{ csrf_token }}">
            <label>
                Username
                <input name="username" type="text" value="{{ username }}" required>
            </label>

            <label>
                Email
                <input name="email" type="email" value="{{ email }}">
            </label>

            <label>
                SSH public keys (one per line)
                <textarea name="ssh_keys" spellcheck="false">{% for key in ssh_keys %}{{ key }}
{% endfor %}</textarea>
            </label>

            <button type="submit">Save</button>
        </form>
    </section>
</body>
</html>