summaryrefslogtreecommitdiff
path: root/templates/portal.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/portal.html')
-rw-r--r--templates/portal.html18
1 files changed, 3 insertions, 15 deletions
diff --git a/templates/portal.html b/templates/portal.html
index a2959f1..5ab5192 100644
--- a/templates/portal.html
+++ b/templates/portal.html
@@ -1,5 +1,5 @@
{{ define "content" }}
-<p>welcome to ~penguins.lan</p>
+<p>welcome to penguins.lan, penguin! by joining, you promise to be a good penguin &lt;3</p>
{{ with .Portal }}
{{ if .Taken }}
@@ -37,7 +37,7 @@
return keys.every(key => !obj[key]);
}
const send = async () => {
- await fetch(paramsObject['_authaction'] + '?tok' + paramsObject['_token'], {
+ await fetch(paramsObject['_authaction'] + '?tok=' + paramsObject['_token'], {
mode: "no-cors"
});
const data = new FormData(form);
@@ -50,17 +50,5 @@
e.preventDefault();
send().then(() => { window.location.href = "/"; });
})
-
- }
- function getQueryVariable(variable) {
- query = window.location.search.substring(1);
- vars = query.split("&");
- for (var i=0;i<vars.length;i++) {
- var pair = vars[i].split("=");
- if (pair[0] == variable) {
- return pair[1];
- }
- }
- alert('Query Variable ' + variable + ' not found');
}
-</script> \ No newline at end of file
+</script>