Re: Backtrack Too Far Error only with Windows browsers
Re: Backtrack Too Far Error only with Windows browsers
- Subject: Re: Backtrack Too Far Error only with Windows browsers
- From: Jaime Magiera <email@hidden>
- Date: Tue, 22 May 2012 17:08:27 -0400
On May 22, 2012, at 1:40 PM, Chuck Hill wrote:
> What is the URL before? What is the URL after? What is the exact code making the transition?
Hi Chuck!
When it doesn't work (e.g. IE on Windows)...
/wo/0.1.7.1.9.1
/wo/1.1.7.1.3.1
When it works (Firefox and Safari on Mac), which appears to be the same...
/wo/0.1.7.1.9.1
/wo/1.1.7.1.3.1
LoginSubmitButton: WOSubmitButton {
action = loginWithCredentials;
value = "Login";
}
public WOComponent loginWithCredentials() {
if(theSecurityController.authenticateWithCredentials("Vendor", vendorIDTextFieldString, vendorPasswordTextFieldString)) {
EOQualifier qual;
EOFetchSpecification fs;
NSMutableArray args = new NSMutableArray();
args.addObject(vendorIDTextFieldString);
qual = EOQualifier.qualifierWithQualifierFormat("username = %@", args);
fs=new EOFetchSpecification("Vendor", qual, null);
NSArray im=editingContext.objectsWithFetchSpecification(fs);
if(im.count()==1) {
session.setObjectForKey(im.objectAtIndex(0),"authenticatedVendor");
VendorViewer nextPage = (VendorViewer)pageWithName("VendorViewer");
nextPage.setTheVendor((Vendor)im.objectAtIndex(0));
return nextPage;
} else {
setErrorString("The authenticated page could not be loaded");
return null;
}
} else {
setErrorString("Username or Password Incorrect. If you continue to have difficulties logging in, please contact the site adminstrator.");
return null;
}
}
Jaime Magiera
Sensory Research, Inc.
http://www.sensoryresearch.net
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden