Changed the response content of the username validation method

This commit is contained in:
Alex Tselegidis 2021-10-28 13:32:04 +02:00
parent 7c082689ea
commit 8e0d8d7c16

View file

@ -224,7 +224,7 @@ window.BackendUsers = window.BackendUsers || {};
$.post(url, data) $.post(url, data)
.done(function (response) { .done(function (response) {
if (response === 'false') { if (response.is_valid === 'false') {
$input.closest('.form-group').addClass('has-error'); $input.closest('.form-group').addClass('has-error');
$input.attr('already-exists', 'true'); $input.attr('already-exists', 'true');
$input.parents().eq(3).find('.form-message').text(EALang.username_already_exists); $input.parents().eq(3).find('.form-message').text(EALang.username_already_exists);