authentication via username or phones

This commit is contained in:
2024-09-18 17:43:33 +05:00
parent e95797bb97
commit c086feb6c0
10 changed files with 78 additions and 25 deletions

View File

@@ -1,3 +1,7 @@
.lowecase {
text-transform: lowercase;
}
.bg-img {
background: url(/assets/images/login-bg.jpg) no-repeat fixed var(--sc-login-bg-position, 50% 50%);
background-size: cover;

View File

@@ -27,14 +27,16 @@ async function postData(url = '', data = {}) {
body: JSON.stringify(data)
})
console.log({response})
return response.json()
}
function addValidationClasses(item) {
$_ID(item.key).classList.add('form-input-border-error')
$_ID(`${item.key}-error-box`).innerHTML = `<strong>${item.value}</strong>`
if (! item) {
return;
}
$_ID(item.key).classList.add('form-input-border-error')
$_ID(`${item.key}-error-box`).innerHTML = `<strong>${item.value}</strong>`
}
function removeValidationClasess() {