Add delay to redirect to homepage so it wont interfere with cookie clearing

This commit is contained in:
Jeremy Zhang 2019-04-29 01:17:46 +00:00
parent 9f1b2dde04
commit 607e285f4f

View File

@ -13,7 +13,7 @@
<div class="col s10">
<span class="black-text">
<p class="flow-text">Welcome <strong>{{ session['username'] }}#{{ session['discriminator'] }}</strong> to <strong>Titan Embeds</strong>!</p>
<p>Not the right account? Sign out of the Discord online client <a href="#" onclick="window.open('{{ url_for("user.logout", redirect="https://discordapp.com/channels/@me") }}'); window.location.href = '{{ url_for("index") }}'; return false;">here</a> and log back into Titan Embeds.</p>
<p>Not the right account? Sign out of the Discord online client <a href="#" onclick="window.open('{{ url_for("user.logout", redirect="https://discordapp.com/channels/@me") }}'); setTimeout(function () {window.location.href = '{{ url_for("index") }}';}, 3000); return false;">here</a> and log back into Titan Embeds.</p>
</span>
</div>
</div>