js for authorization
authorjordan@hack_attack <jordanlavatai@gmail.com>
Fri, 1 Jul 2016 00:36:50 +0000 (17:36 -0700)
committerjordan@hack_attack <jordanlavatai@gmail.com>
Fri, 1 Jul 2016 00:36:50 +0000 (17:36 -0700)
src/html/js/auth.js [new file with mode: 0644]

diff --git a/src/html/js/auth.js b/src/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);