diff --git a/web/js/login.js b/web/js/login.js index 74a7c97..fc6e65e 100644 --- a/web/js/login.js +++ b/web/js/login.js @@ -13,7 +13,7 @@ function login(email, password) { display_message("status", "success", "Success!", function() {$("#login").removeAttr("disabled");}); // wait then redirect or whatever } else { - display_message("status", "warning", data.message, function() {$("#login").removeAttr("disabled");}); + display_message("status", "danger", data.message, function() {$("#login").removeAttr("disabled");}); } }); } diff --git a/web/js/register.js b/web/js/register.js index d6bc090..bf1fcf4 100644 --- a/web/js/register.js +++ b/web/js/register.js @@ -18,7 +18,7 @@ function register(name, username, password, password_confirm, email, captcha_res display_message("status", "success", "Success!", function() {$("#register").removeAttr("disabled")}); // wait then redirect or whatever } else { - display_message("status", "warning", data.message, function() {$("#register").removeAttr("disabled")}); + display_message("status", "danger", data.message, function() {$("#register").removeAttr("disabled")}); grecaptcha.reset(); } });