I see, you're using the FaceBookAccount example from the Access Control chapter. I don't think that example code will work as is with ExtendedLoginForm, which requires the alternate login object to have a login_form() method. You'll probably have to implement a login_form() method for the class.
Anthony On Wednesday, August 22, 2012 10:51:31 PM UTC-4, Alec Taylor wrote: > > Thanks, but unfortunately that didn't work. > > Error ticket: http://jsfiddle.net/AlecTaylor/nNS5d/show/light > > On Thu, Aug 23, 2012 at 12:56 AM, Anthony <[email protected] <javascript:>> > wrote: > > I just corrected this in the book. > > > > Anthony > > > > > > On Wednesday, August 22, 2012 10:53:50 AM UTC-4, Anthony wrote: > >> > >> auth.settings.login_form = ExtendedLoginForm(request, auth, > facebook_login > >> , signals=['token']) > >> > >> ExtendedLoginForm() does not take request as the first argument. > "signals" > >> is the third argument, so it is seeing facebook_login as the "signals" > >> argument, and of course, you also have an additional "signals" > argument, > >> hence the error. Change to: > >> > >> auth.settings.login_form = ExtendedLoginForm(auth, facebook_login , > >> signals=['token']) > >> > >> Anthony > >> > >> On Monday, August 20, 2012 2:48:01 PM UTC-4, Alec Taylor wrote: > >>> > >>> I followed the tutorial exactly, except used the Facebook login form > >>> rather than the RPX (Janrain) one: > >>> > http://web2py.com/books/default/chapter/29/9#Other-login-methods-and-login-forms > > >>> > >>> Error ticket: http://jsfiddle.net/AlecTaylor/PVGFM/show/light/ > >>> > >>> How do I get a "double login" form? > >>> > >>> Thanks for all information, > >>> > >>> Alec Taylor > > > > -- > > > > > > > --

