From 391c78aed889f0f18ebe3f8a2b5eb0b6d4fe5a63 Mon Sep 17 00:00:00 2001 From: Ryan Birmingham Date: Wed, 17 Jul 2019 16:59:09 -0400 Subject: [PATCH] add basic signup page --- apps/signup/signup.html | 44 +++++++++++++++++++++++++++++++++++++++++ google_login.html | 4 +++- 2 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 apps/signup/signup.html diff --git a/apps/signup/signup.html b/apps/signup/signup.html new file mode 100644 index 000000000..45af8ae66 --- /dev/null +++ b/apps/signup/signup.html @@ -0,0 +1,44 @@ + +

User Signup

+If you reach this page, it's likely that you tried to log into this instance but lack access. +Email SOMEONE if you want to be added. + +If you are an admin, you should be able to use this form: + + + +
+ Email: + Attributes: + Submit: +
+ + diff --git a/google_login.html b/google_login.html index 390b29828..461721b29 100644 --- a/google_login.html +++ b/google_login.html @@ -16,6 +16,7 @@ var base_deployment_url = window.location.toString().split("/").slice(0,-1).join("/") var redirect_uri = base_deployment_url + "/login.html" var default_redirect = base_deployment_url + "/apps/table.html" +var signup_redirect = base_deployment_url + "/apps/signup/signup.html" let state = decodeURIComponent(getUrlParam("state")) if (!state || state == "null"){ state = default_redirect @@ -60,7 +61,8 @@ document.cookie = cookie_name + "=" + x.token; window.location = state } else { - window.alert("no!") + window.alert("User not added.") + window.location = signup_redirect } })