pis #2
@ -91,9 +91,10 @@ async function register() { // Registers a device by sending POST request to API
|
|||||||
showDone();
|
showDone();
|
||||||
hideLoading();
|
hideLoading();
|
||||||
return;
|
return;
|
||||||
} else if (res.status == 403)
|
} else if (res.status == 403) {
|
||||||
log(`settings.register: Error: Fetch returned: ${res.body['errorCode']}`, "err")
|
log(`settings.register: Error: Fetch returned: ${res.body['errorCode']}`, "err")
|
||||||
document.getElementsByName("eml")[0].placeholder = "Not Authorised";
|
document.getElementsByName("eml")[0].placeholder = "Not Authorised";
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
logout()
|
logout()
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user