diff --git a/src/images/backgroundsharkycoin.png b/src/images/backgroundsharkycoin.png
new file mode 100644
index 0000000..48a2362
--- /dev/null
+++ b/src/images/backgroundsharkycoin.png
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6aa92476b2064576b1db1a13f14e4cef1016010e4c9f4d9af62a67ba9af76300
+size 41493
diff --git a/src/images/sharky_vector_svg.svg b/src/images/sharky_vector_svg.svg
new file mode 100644
index 0000000..c864050
--- /dev/null
+++ b/src/images/sharky_vector_svg.svg
@@ -0,0 +1,193 @@
+
+
+
diff --git a/src/index.html b/src/index.html
index c8519f0..a1c4fcc 100644
--- a/src/index.html
+++ b/src/index.html
@@ -4,11 +4,27 @@
Skynet
+
-Skynet Password Reset & Sign-up service
-
-Please use this service if you ever need to change your skynet password
+
+
+
Skynet Password Reset & Sign-up service
+
+
+
+
Please use this if you have yet to activate an account on Skynet before.
+
+
Please use this service to change your skynet password
+
+
+ Please use this service to modify your user data (email, login ssh key, etc.)
+
+
+
+ Please use this service to get a reminder email with your skynet username
+
+
diff --git a/src/modify.html b/src/modify.html
index 3c160fc..eff3b0c 100644
--- a/src/modify.html
+++ b/src/modify.html
@@ -4,28 +4,51 @@
Modify user
+
-
-
+
+
+
Skynet Password Reset & Sign-up service
+
+
+
User modification page
+
Use this page to modify your account. Please remember to select a field before submitting the form
+
+
+
@@ -49,7 +72,7 @@
}).then(res => {
if (res.status === 200) {
let temp = res.json();
- if(temp.result === 'error'){
+ if (temp.result === 'error') {
document.getElementById('formStatus').innerHTML = `${temp.error}`;
} else {
document.getElementById('formStatus').innerHTML = "Success";
@@ -65,10 +88,10 @@
}
}
- function selectField(){
+ function selectField() {
const field = document.getElementById('field').value;
const value = document.getElementById('value');
- if(field === 'mail'){
+ if (field === 'mail') {
value.type = 'email';
} else {
value.type = 'text';
diff --git a/src/password.html b/src/password.html
index 067c2c3..90612d9 100644
--- a/src/password.html
+++ b/src/password.html
@@ -1,23 +1,45 @@
-
- Password change
-
+
+ Password reset
+
+
-
-
+
+
+
Skynet Password Reset & Sign-up service
+
+
+
Password Change
+
Please use this page to change your Skynet password.
+
+
+
@@ -25,22 +47,22 @@
const formEl = document.getElementById("reset");
formEl.addEventListener('submit', (listener) => formHandler(listener));
- function formHandler(listener){
+ function formHandler(listener) {
listener.preventDefault();
const formData = new FormData(formEl);
const user = formData.get("user");
const pass = formData.get("pass");
const newPW = formData.get("newPW");
- if(newPW === formData.get("newPWConfirm")){
+ if (newPW === formData.get("newPWConfirm")) {
const object = {user: user, pass: pass, field: "userPassword", value: newPW}
fetch('https://api.account.skynet.ie/ldap/update', {
method: 'POST',
body: JSON.stringify(object),
mode: "cors"
}).then(res => {
- if(res.status === 200) {
+ if (res.status === 200) {
document.getElementById('formStatus').innerHTML = "Success";
- } else if (res.status === 500){
+ } else if (res.status === 500) {
document.getElementById('formStatus').innerHTML = "Failure";
} else {
document.getElementById('formStatus').innerHTML = "Failure: Failed to communicate to server";
@@ -55,4 +77,4 @@
-
\ No newline at end of file
+
diff --git a/src/recovery/.gitkeep b/src/recovery/.gitkeep
new file mode 100644
index 0000000..e69de29
diff --git a/src/recovery/username.html b/src/recovery/username.html
new file mode 100644
index 0000000..6a47c70
--- /dev/null
+++ b/src/recovery/username.html
@@ -0,0 +1,60 @@
+
+
+
+
+ Forgot Username
+
+
+
+
+
+
+
Skynet Password Reset & Sign-up service
+
+
+
Forgot Username
+
Please use this page to get a reminder email with your skynet username in it.
+
+
+
+
+
+
+
+
diff --git a/src/register.html b/src/register.html
index 6311225..37b85d6 100644
--- a/src/register.html
+++ b/src/register.html
@@ -2,20 +2,40 @@
- Skynet Sign-up
+ Skynet Register
+
-Sign-up
-
+
+
+
Skynet Password Reset & Sign-up service
+
+
+
Register
+
Thank you for signing up for your free skynet account. Please complete the process by filling in the form
+ below
+
+