forked from mirrors/easyappointments
Changed the response content of the username validation method
This commit is contained in:
parent
7c082689ea
commit
8e0d8d7c16
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue