zulip/templates/confirmation/confirm_preregistrationuser.html
Luke Faraone 4491f7b1d8 Don't show a name of "None" if not using Google Apps authentication.
Previously we used the value of gafyd_name in forms, which means that if
it was undefined we'd end up with a string literal "None" being passed to
the registration form by the confirmation redirector.

(imported from commit c8fbb749bb793c8e927e86603ce196bf810f3f6a)
2013-04-30 14:15:52 -07:00

24 lines
743 B
HTML

{% extends "zephyr/base.html" %}
{% block content %}
{% comment %}
This template is referenced by the confirmation code and does not have the
requisite context to make a useful signup form. Therefore, we immediately
post to another view which executes in our code to produce the desired form.
{% endcomment %}
<form id="register" action="/accounts/register/" method="post">
{% csrf_token %}
<input type="hidden" value="{{ key }}" name="key"/>
<input type="hidden" value="1" name="from_confirmation"/>
<input type="hidden" value="{% if gafyd_name %}{{ gafyd_name }}{% endif %}" name="gafyd_name"/>
</form>
<script type="text/javascript">
$(function () {
$("#register").submit();
});
</script>
{% endblock %}