Auto logs user in with prefilled guest username if no captcha is present

This commit is contained in:
Jeremy Zhang
2018-02-16 01:12:25 +00:00
parent e8ecacb9be
commit 9e53f16eb2
3 changed files with 4 additions and 2 deletions

View File

@ -415,6 +415,8 @@
unlock_login_fields();
if (data.status == 403 && getParameterByName("create_authenticated_user") == "true" && getParameterByName("sametarget") == "true") {
wait_for_discord_login();
} else if (!unauth_captcha_enabled && $("#custom_username_field").val().trim() !== "") {
$("#custom_username_field").trigger(jQuery.Event("keyup", { keyCode: 13 } ));
} else if (visitors_enabled) {
setVisitorMode(true);
var guild2 = query_guild();