Adjust reg messaging on settings.html

This commit is contained in:
Fred Boniface 2023-04-10 20:30:17 +01:00
parent b529b41911
commit dd61bd3af7
2 changed files with 7 additions and 6 deletions

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>