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