update username

This commit is contained in:
realaravinth
2021-08-13 18:58:04 +05:30
parent 595e79a014
commit 6ef941f73d
13 changed files with 238 additions and 171 deletions

View File

@@ -83,6 +83,10 @@ const registerUser = async (e: Event) => {
export const index = () => {
const form = <HTMLFontElement>document.getElementById('form');
form.addEventListener('submit', registerUser, true);
usernameElement.addEventListener('input', userExists, false);
usernameElement.addEventListener(
'input',
async () => await userExists(),
false,
);
registerShowPassword();
};