[Plugin: External DB authentication] Integration WordPress and NopCommerce
-
I have updated the plugin script to fix :
1) MS SQL Server query bug
2) Support NopCommerce Encryption.Here is my changes :
Line 176 // Add NopCommerce 1.80 Encryption option
<?php switch(get_option('ext_db_enc')) { case "SHA1" : echo '<option selected="selected">SHA1</option><option>MD5</option><option>NopCommerce 1.80</option><option>Other</option>'; break; case "MD5" : echo '<option>SHA1</option><option selected="selected">MD5</option><option>NopCommerce 1.80</option><option>Other</option>'; break; //START Support for NopCommerce 1.80 case "NopCommerce 1.80": echo '<option>SHA1</option><option>MD5</option><option selected="selected">NopCommerce 1.80</option><option>Other</option>'; break; //END case "Other" : echo '<option>SHA1</option><option>MD5</option><option>NopCommerce 1.80</option><option selected="selected">Other</option>'; break; default : echo '<option selected="selected">SHA1</option><option>MD5</option><option>NopCommerce 1.80</option><option>Other</option>'; break; } ?>
Line 369 // Add the password hash for NopCommerce comparing password
//START Support for NopCommerce 1.80 case "NopCommerce 1.80" : // Hashing Password for the NopCOmmerce Store $sqlSaltKeyfield = 'SaltKey' ; $query = "SELECT [$sqlSaltKeyfield] FROM " . get_option('ext_db_table') . " WHERE ".get_option('ext_db_namefield')." = '$username'"; $result = db_functions($driver,"query",$resource,$query); $numrows = db_functions($driver,"numrows",$result,""); if ($numrows == 1) { $SaltKey = db_functions($driver,"fetch",$result,""); $SaltKey = $SaltKey[strtolower($sqlSaltKeyfield)]; $nopcryptedpassword = sha1($password.$SaltKey); } $password2 = strtoupper($nopcryptedpassword) ; break; //END
Thank you Charlene for this plugin ??
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘[Plugin: External DB authentication] Integration WordPress and NopCommerce’ is closed to new replies.