mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-25 14:37:02 +01:00
Guest login button lock too
This commit is contained in:
parent
0a88e950d6
commit
3d5503da94
@ -463,6 +463,7 @@
|
|||||||
function lock_login_fields() {
|
function lock_login_fields() {
|
||||||
$("#loginProgress").show();
|
$("#loginProgress").show();
|
||||||
$("#discordlogin_btn").attr("disabled",true);
|
$("#discordlogin_btn").attr("disabled",true);
|
||||||
|
$("#guestlogin_btn").attr("disabled",true);
|
||||||
$("#custom_username_field").prop("disabled",true);
|
$("#custom_username_field").prop("disabled",true);
|
||||||
logintimer = setTimeout(function() {
|
logintimer = setTimeout(function() {
|
||||||
unlock_login_fields();
|
unlock_login_fields();
|
||||||
@ -1514,7 +1515,7 @@
|
|||||||
|
|
||||||
$("#submit-unauthenticated-captcha-btn").click(function(){
|
$("#submit-unauthenticated-captcha-btn").click(function(){
|
||||||
lock_login_fields();
|
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) {
|
usr.done(function(data) {
|
||||||
grecaptcha.reset();
|
grecaptcha.reset();
|
||||||
setVisitorMode(false);
|
setVisitorMode(false);
|
||||||
|
Loading…
Reference in New Issue
Block a user