Prefill guest textbox when already logged in

This commit is contained in:
Jeremy Zhang 2017-04-07 17:11:43 -07:00
parent d12deb803d
commit e78117e379

View File

@ -74,7 +74,7 @@
{% if unauth_enabled %}
<div class="col s1 m8">
<p>Of course, you also have the option to login by picking a temporary username.</p>
<input id="custom_username_field" type="text">
<input id="custom_username_field" type="text" {% if session.unauthenticated and session.username %}value="{{ session['username'] }}"{% endif %}>
<label class="active" for="custom_username_field">Username</label>
</div>
{% endif %}