Home
Knitting
All Knitting
Knitting Needles
Buttons
Knitting Tools
Sock Blockers
Addi Knitting Products
Weaving
All Weaving
Loom Kits
Looms
Loom Tools
Kitchen
Garden
Desktop
Bespoke
{{shopper.order.total_VIEW}}
Order Number: {{shopper.orderNumber}}
Check Out
OpenForum
Authentication
//OpenForum/Authentication/login.sjs
var result = false; var name = login.getUser().getName(); var password = login.getPassword(); var testPassword = ""+file.getAttachment("/OpenForum/Users/"+name,"password.txt").trim(); var siteHashA = ""+file.getAttachment("/OpenForum/Authentication","authentication.hash.a"); var siteHashB = ""+file.getAttachment("/OpenForum/Authentication","authentication.hash.b"); var hashedPasswordA = ""+js.generateMD5( testPassword + siteHashA ); var hashedPasswordB = ""+js.generateMD5( testPassword + siteHashB ); file.saveAttachment( "/OpenForum/Authentication", "test.txt", "(" + siteHashA + " or " + siteHashB + ") " + hashedPasswordA + " or " + hashedPasswordB + "=" + password + "(" + testPassword + ")" ); if( hashedPasswordA.toUpperCase()==password.toUpperCase() || hashedPasswordB.toUpperCase()==password.toUpperCase() ) { result = true; if(typeof(sessionStore) != "undefined") { var sessionId = sessionStore.createSession(name); login.setSessionId( sessionId ); } } login.clearPassword(); result=result;
An error has occurred.
{{OpenForum.errorMessage}}
See technical details
×
Error details.
{{OpenForum.error}}
×
{{OpenForum.alert.title}}
{{OpenForum.alert.message}}
×