Well, ExtendedLoginForm is not working, but I am trying to fix it and send a patch.
By now, I am using another solution, If someone else needs the same.
At models after the definition of auth:
<code>
if request.vars._next:
else:
rpxform = RPXAccount(request,
api_key='<your api key>',
domain='<your domain without name >',
url = url,
language="pt-BR",embed=True
)
</code>
In the controller:
<code>
def user():
rpx = ''
registerurl=URL('default','user',args='register')
if request.vars.token:
auth.settings.login_form = rpxform
return dict(form=auth())
if 'login' in request.args:
rpx = rpxform.login_form()
html = DIV(H1('Login'),
rpx,BR(),BR(),
H1(A('Click to register',_href=registerurl),BR(),' or sign-up with your password:'),
auth(),
)
else:
html = auth()
return dict(form=html)
</code>
That is working very well now! thanks for Nathan Freeze who helps me a lot!
If I got success fixing ExtendLoginForm I will send a patch for this.