include the referral code when user signs up via SIWSL

This commit is contained in:
Son 2021-10-26 12:06:16 +02:00
parent 04bcc24ad7
commit b41b695228
1 changed files with 9 additions and 4 deletions

View File

@ -32,10 +32,15 @@
<a href="{{ url_for('auth.login', next=next) }}" class="btn btn-success">
Login
</a>
<a href="{{ url_for('auth.register', next=next) }}" class="btn btn-info">
Sign Up
</a>
{% if client.referral %}
<a href="{{ url_for('auth.register', slref=client.referral.code, next=next) }}" class="btn btn-info">
Sign Up
</a>
{% else %}
<a href="{{ url_for('auth.register', next=next) }}" class="btn btn-info">
Sign Up
</a>
{% endif %}
</div>
</div>