From 8e0d8d7c16d39ed87af90b84584a89571f82d458 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Thu, 28 Oct 2021 13:32:04 +0200 Subject: [PATCH] Changed the response content of the username validation method --- assets/js/backend_users.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/backend_users.js b/assets/js/backend_users.js index df639abe..f74e5672 100644 --- a/assets/js/backend_users.js +++ b/assets/js/backend_users.js @@ -224,7 +224,7 @@ window.BackendUsers = window.BackendUsers || {}; $.post(url, data) .done(function (response) { - if (response === 'false') { + if (response.is_valid === 'false') { $input.closest('.form-group').addClass('has-error'); $input.attr('already-exists', 'true'); $input.parents().eq(3).find('.form-message').text(EALang.username_already_exists);