forked from mirrors/easyappointments
Add missing parameter to the validate username function
This commit is contained in:
parent
fb9e78535f
commit
bd6ccfb55e
1 changed files with 1 additions and 1 deletions
|
@ -170,7 +170,7 @@ App.Pages.Account = (function () {
|
|||
function onUsernameChange() {
|
||||
const username = $username.val();
|
||||
|
||||
App.Http.Account.validateUsername(username).done((response) => {
|
||||
App.Http.Account.validateUsername(vars('user_id'), username).done((response) => {
|
||||
const isValid = response.is_valid;
|
||||
$username.toggleClass('is-invalid', !isValid);
|
||||
if (!isValid) {
|
||||
|
|
Loading…
Reference in a new issue