Implement a guest login button, initially hidden

This commit is contained in:
Jeremy Zhang
2018-08-06 03:59:36 +00:00
parent 65576b7ffc
commit 0a88e950d6
3 changed files with 25 additions and 12 deletions

View File

@ -149,6 +149,7 @@
<p id="guest_login_instr">{{ _("Of course, you also have the option to login by picking a temporary username for your current browsing session.") }}</p>
<input id="custom_username_field" type="text" {% if session.unauthenticated and session.username %}value="{{ session['username'] }}"{% endif %}>
<label id="custom_username_field_label" class="active" for="custom_username_field">{{ _("Username (Hit ENTER/RETURN key to confirm)") }}</label>
<a id="guestlogin_btn" class="waves-effect waves-light btn-large">Guest Login</a>
</div>
{% endif %}
</div>