Compare commits

..

2 Commits

Author SHA1 Message Date
Fred Boniface 4b297508f0 Remove fault message from index 2023-04-10 20:30:44 +01:00
Fred Boniface dd61bd3af7 Adjust reg messaging on settings.html 2023-04-10 20:30:17 +01:00
3 changed files with 7 additions and 7 deletions

View File

@ -60,7 +60,6 @@
<div id="quick_links"> <div id="quick_links">
</div> </div>
<div class="text-description"> <div class="text-description">
<p>A fault with our bandwidth provider is causing intermittent connectivity. Apologies for any inconvenience.</p>
<p>Customise your quick links on the <a href="/settings.html">Settings</a> page.</p> <p>Customise your quick links on the <a href="/settings.html">Settings</a> page.</p>
</div> </div>
<!-- Footer --> <!-- Footer -->

View File

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

View File

@ -71,10 +71,10 @@
<label>Register for Rail Staff Version:</label> <label>Register for Rail Staff Version:</label>
<p id="reg_text">Enter your work email address:</p> <p id="reg_text">Enter your work email address:</p>
<input type="text" maxlength="128" id="eml" name="eml" autocomplete="email" class="lookup-box" placeholder="Not yet available"><br> <input type="text" maxlength="128" id="eml" name="eml" autocomplete="email" class="lookup-box" placeholder="Not yet available"><br>
<p>Once you've registered you will receive an email with a link to create your access key.</p> <p>One registration confirmation email will be sent which will include more details about your account</p>
<p>Your email address is not stored by OwlBoard, accounts do not contain any identifying information and are automatically removed after three months of inactivity.</p> <p>Your address will not be stored</p>
<p>You can use the same email address again on multiple devices.</p> <p>If your domain is not authorised and you are a using a railway company email address,
<a href="./issue.html">submit an issue</a> and it can be added.</p>
<button onclick="register()" class="lookup-button" id="reg_button">Register</button> <button onclick="register()" class="lookup-button" id="reg_button">Register</button>
</body> </body>
</html> </html>