authentication via username or phones
This commit is contained in:
1 parent
e95797bb97
commit
c086feb6c0
10 files changed
+78
-25
No files matched your search
@@ -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