Add missing parameter to the validate username function

This commit is contained in:
Alex Tselegidis 2022-10-03 17:01:21 +03:00
parent fb9e78535f
commit bd6ccfb55e

View file

@ -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) {