diff --git a/webapp/titanembeds/static/js/embed.js b/webapp/titanembeds/static/js/embed.js index 958db29..6346457 100644 --- a/webapp/titanembeds/static/js/embed.js +++ b/webapp/titanembeds/static/js/embed.js @@ -368,9 +368,11 @@ lock_login_fields(); var guild = query_guild(); - guild.fail(function() { + guild.fail(function(data) { unlock_login_fields(); - if (visitors_enabled) { + if (data.status == 403 && getParameterByName("create_authenticated_user") == "true" && getParameterByName("sametarget") == "true") { + wait_for_discord_login(); + } else if (visitors_enabled) { setVisitorMode(true); var guild2 = query_guild(); guild2.done(function(data) { diff --git a/webapp/titanembeds/templates/embed.html.j2 b/webapp/titanembeds/templates/embed.html.j2 index 82606ed..dc6ab4f 100644 --- a/webapp/titanembeds/templates/embed.html.j2 +++ b/webapp/titanembeds/templates/embed.html.j2 @@ -102,7 +102,7 @@
*{{ _("You will be invited into this server.") }}