BuildSys1
[henge/webcc.git] / html / js / auth.js
diff --git a/html/js/auth.js b/html/js/auth.js
new file mode 100644 (file)
index 0000000..d399d6f
--- /dev/null
@@ -0,0 +1,14 @@
+/*!@file
+  \brief   Authorization Handling
+  \details Upon user submission of id/password, hashes password and saves
+           result in a file on VFS using hashing algorithm provided by libgcrypt.c
+  \author  JEL
+  \date    2016
+  -----------------------------------------------------------------------------*/
+/* On button press, send password to C runtime environment */
+function userLogin()
+{
+    var password = document.getElementById("password").value;
+    /* Call Module.execute on encrypt_password() */
+};
+document.getElementById("login").addEventListener("click", userLogin, false);