apc initial implementation
[henge/webcc.git] / html / js / auth.js
index d399d6f..3eb052a 100644 (file)
@@ -1,7 +1,7 @@
 /*!@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
+  \details Upon user submission of id/password, hashes password and
+           saves result in a file on VFS using hashing algorithm prov           ided by wolfcrypt, a subsystem of wolfSSL
   \author  JEL
   \date    2016
   -----------------------------------------------------------------------------*/
@@ -9,6 +9,9 @@
 function userLogin()
 {
     var password = document.getElementById("password").value;
-    /* Call Module.execute on encrypt_password() */
+    /* Virtual Filesystem is of type IDBFS and has been setup in            preRun in Module via JVM runtime environment*/
+    Module.execute(_auth_encrypt, password);
+
 };
+
 document.getElementById("login").addEventListener("click", userLogin, false);