From 3d5503da9480121c663f5334f8cae8f5bd76a85b Mon Sep 17 00:00:00 2001 From: Jeremy Zhang Date: Mon, 6 Aug 2018 04:16:09 +0000 Subject: [PATCH] Guest login button lock too --- webapp/titanembeds/static/js/embed.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webapp/titanembeds/static/js/embed.js b/webapp/titanembeds/static/js/embed.js index 46023bc..51d0628 100644 --- a/webapp/titanembeds/static/js/embed.js +++ b/webapp/titanembeds/static/js/embed.js @@ -463,6 +463,7 @@ function lock_login_fields() { $("#loginProgress").show(); $("#discordlogin_btn").attr("disabled",true); + $("#guestlogin_btn").attr("disabled",true); $("#custom_username_field").prop("disabled",true); logintimer = setTimeout(function() { unlock_login_fields(); @@ -1514,7 +1515,7 @@ $("#submit-unauthenticated-captcha-btn").click(function(){ lock_login_fields(); - var usr = create_unauthenticated_user($("#custom_username_field").val(), grecaptcha.getResponse()); + var usr = create_unauthenticated_user($("#").val(), grecaptcha.getResponse()); usr.done(function(data) { grecaptcha.reset(); setVisitorMode(false);