I used the code from the book(Full Stack Web Framework, 4th Ed) to create a 
facebook login successfully, but that code disabled the default login form.
I tried to use ExtendedLoginForm but i got this error: <type 
'exceptions.AttributeError'> 
'FaceBookAccount' object has no attribute 'login_form''

Is there another way to keep the facebook login and the default login form 
on the same page? Below is a snippet of what I have at the end of the 
FaceBookAccount class in db.py

form gluon.contrib.login_methods.extended_login_form import 
ExtendedLoginForm
other_form = FaceBookAccount(globals())
auth.settings.login_form = ExtendedLoginForm(auth, other_form)

Thanks much
 

Reply via email to