X-Git-Url: https://www.kengrimes.com/gitweb/?p=henge%2Fwebcc.git;a=blobdiff_plain;f=html%2Fjs%2Fauth.js;h=3eb052ae127896be6b352e5ce2be05033d057a04;hp=d399d6f49415849f86f11ba95b9e6d4e83c42948;hb=b363cb566b9d21b6c607d18579232f9c79b15f4b;hpb=47ef7f075603faf78809252b03b7d4e99b14e00f diff --git a/html/js/auth.js b/html/js/auth.js index d399d6f..3eb052a 100644 --- a/html/js/auth.js +++ b/html/js/auth.js @@ -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);