diff --git a/resources/views/account/login.php b/resources/views/account/login.php index bfb0ccf..ed37000 100644 --- a/resources/views/account/login.php +++ b/resources/views/account/login.php @@ -32,6 +32,9 @@ } }); } + $(window).on( "load", function() { + getCaptchaConfig(); + }); $(document).ready(function () { getCaptchaConfig(); console.log("READY"); diff --git a/resources/views/account/register.php b/resources/views/account/register.php index 6d50563..a0aca41 100644 --- a/resources/views/account/register.php +++ b/resources/views/account/register.php @@ -50,9 +50,12 @@ } }); } + $(window).on( "load", function() { + getCaptchaConfig(); + }); $(document).ready(function () { console.log("READY"); - getCaptchaConfig(); + $("#register").submit(function (e) { e.preventDefault(); var form = $(this);