Commit 0125fccb authored by Kostas Papadimitriou's avatar Kostas Papadimitriou
Browse files

Dynamic third party signup url

parent eeb8dfe6
......@@ -160,6 +160,7 @@ def login(
extra_context['provider'] = 'shibboleth'
extra_context['token'] = user.token
extra_context['signup_url'] = reverse('shibboleth_signup', args=(user.token,))
return render_response(
template,
......
......@@ -171,6 +171,7 @@ def authenticated(
extra_context['provider'] = 'twitter'
extra_context['token'] = user.token
extra_context['signup_url'] = reverse('twitter_signup', args=(user.token,))
return render_response(
template,
......
......@@ -14,7 +14,7 @@
<div class="form-stacked">
<h2><span>Already have an account?</span></h2>
<a href="{% url astakos.im.views.index %}?key={{ token }}">YES</a>
<a href="{% url shibboleth_signup token %}">NO</a>
<a href="{{ signup_url }}">NO</a>
</div>
{% endif %}
{% endblock %}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment