From dd61bd3af750486565fd4813b312cdead048c2b0 Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Mon, 10 Apr 2023 20:30:17 +0100 Subject: [PATCH] Adjust reg messaging on settings.html --- js/settings.js | 5 +++-- settings.html | 8 ++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/js/settings.js b/js/settings.js index bb0b2b6..701aa1b 100644 --- a/js/settings.js +++ b/js/settings.js @@ -91,8 +91,9 @@ async function register() { // Registers a device by sending POST request to API showDone(); hideLoading(); return; - } - log(`settings.register: Error: Fetch returned: ${res.status}`, "err") + } else if (res.status == 403) + log(`settings.register: Error: Fetch returned: ${res.body['errorCode']}`, "err") + document.getElementsByName("eml")[0].placeholder = "Not Authorised"; } else { logout() } diff --git a/settings.html b/settings.html index 9648367..b2d05c4 100644 --- a/settings.html +++ b/settings.html @@ -71,10 +71,10 @@

Enter your work email address:


-

Once you've registered you will receive an email with a link to create your access key.

-

Your email address is not stored by OwlBoard, accounts do not contain any identifying information and are automatically removed after three months of inactivity.

-

You can use the same email address again on multiple devices.

+

One registration confirmation email will be sent which will include more details about your account

+

Your address will not be stored

+

If your domain is not authorised and you are a using a railway company email address, + submit an issue and it can be added.

- \ No newline at end of file