authentication via username or phones
This commit is contained in:
@@ -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