Login: Fixed typo that prevented non-DH crypto from working (thanks Keith Schmader)
authorDan
Mon, 16 Nov 2009 00:06:55 -0500
changeset 1136 8c664c96fccd
parent 1135 56c0abbdad3e
child 1137 9f928ce05b6b
Login: Fixed typo that prevented non-DH crypto from working (thanks Keith Schmader)
includes/clientside/jsres.php
includes/clientside/static/login.js
--- a/includes/clientside/jsres.php	Wed Nov 11 23:48:55 2009 -0500
+++ b/includes/clientside/jsres.php	Mon Nov 16 00:06:55 2009 -0500
@@ -12,7 +12,7 @@
  * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for details.
  */
 
-define('ENANO_JS_DEBUG', 1);
+// define('ENANO_JS_DEBUG', 1);
 
 // if Enano's already loaded, we've been included from a helper script
 if ( defined('ENANO_CONFIG_FETCHED') )
--- a/includes/clientside/static/login.js	Wed Nov 11 23:48:55 2009 -0500
+++ b/includes/clientside/static/login.js	Mon Nov 16 00:06:55 2009 -0500
@@ -772,7 +772,7 @@
   }
   
   // Post operations: stash encryption keys and All That Jazz(TM)
-  logindata.key_aes = data.crypto_aes_key;
+  logindata.key_aes = data.crypto.aes_key;
   logindata.key_dh = data.crypto.dh_public_key;
   logindata.captcha_hash = show_captcha;
   logindata.loggedin_username = data.username;