authentication via username or phones
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user