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 protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]