require JS, set cookies, make parts of login flow work
[authserver.git] / authsystem.js
diff --git a/authsystem.js b/authsystem.js
new file mode 100644 (file)
index 0000000..8fd9756
--- /dev/null
@@ -0,0 +1,11 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this file,
+ * You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+window.onload = function() {
+  document.getElementById("jswarning").classList.add("hidden");
+  var loginForm = document.getElementById("loginform");
+  if (loginForm) {
+    loginForm.classList.remove("hidden");
+  }
+}