Force create authenticated user when same target is true and prime embed throws 403

This commit is contained in:
Jeremy Zhang
2018-01-02 22:35:54 +00:00
parent e74c4a47a9
commit f58a43a388
3 changed files with 6 additions and 4 deletions

View File

@ -102,7 +102,7 @@
</div>
<div class="row">
<div class="col s12 l4">
<a id="discordlogin_btn" href="{% if not same_target %}{{ url_for("embed.login_discord", _external=True) }}{% else %}{{ url_for("user.login_authenticated", redirect=request.url, _external=True) }}{% endif %}" class="waves-effect waves-light btn-large" {% if not same_target %}target="_blank"{% endif %}>{{ _("Discord Login") }}</a>
<a id="discordlogin_btn" href="{% if not same_target %}{{ url_for("embed.login_discord", _external=True) }}{% else %}{{ url_for("user.login_authenticated", redirect=request.url+"&create_authenticated_user=true", _external=True) }}{% endif %}" class="waves-effect waves-light btn-large" {% if not same_target %}target="_blank"{% endif %}>{{ _("Discord Login") }}</a>
<p>*{{ _("You will be invited into this server.") }}</p>
</div>
{% if unauth_enabled %}