fmt: a little bit of cleanup and formatting

This commit is contained in:
silver 2023-09-26 21:20:33 +01:00
parent 8cb50b67f5
commit 092dec7e21
10 changed files with 497 additions and 498 deletions

View file

@ -8,15 +8,15 @@
</head>
<body>
<div id="title">
<a href="./"><img src="images/sharky_vector_svg.svg" alt="Picture of Sharky, the mascot of skynet" width="145" height="81.56"/> </a>
<img src="images/sharky_vector_svg.svg" alt="Picture of Sharky, the mascot of skynet" width="145" height="81.56"/>
<h1>Skynet Password Reset & Sign-up service</h1>
</div>
<div class="boxes">
<h2><a href="./signup.html">Sign-up Page</a></h2>
<p>Please use this if you have yet to activate an account on Skynet before.</p>
<h2><a href="password.html">Change Password</a></h2>
<h2><a href="./password.html">Change Password</a></h2>
<p>Please use this service to change your skynet password</p>
<h2><a href="modify.html">User modification</a></h2>
<h2><a href="./modify.html">User modification</a></h2>
<p>
Please use this service to modify your user data (email, login ssh key, etc.)
</p>
@ -24,14 +24,13 @@
<p>
Please use this service to get a reminder email with your skynet username
</p>
<h2>
<a href="./recovery/password.html">Forgot your password?</a>
</h2>
<p>
Please use this service to reset your password.
</p>
</div>
<h2><a href="modify.html">User modification</a></h2>
<p>
Please use this service to modify your user data (email, login ssh key, etc.)
</p>
<!--testing2-->
<footer>
UL Computer Society 2023-<span id="year">2023</span>
</footer>

View file

View file

@ -34,7 +34,7 @@
const username = formData.get('username').trim();
const email = formData.get('email').trim();
if(username.length === 0 && email.length === 0){
if (username.length === 0 && email.length === 0) {
document.getElementById('formStatus').innerHTML = "<span style='background-color: red; color: white'>Please enter username or email</span>";
return;
}
@ -44,7 +44,7 @@
};
// assuming username is not empty it is the preferred method
if(username.length > 0){
if (username.length > 0) {
to_send = {user: username};
}