Mind that you can call them all at once

auth.settings.login_methods.append(method1)
auth.settings.login_methods.append(method2)
auth.settings.login_methods.append(method3)


On May 4, 10:53 pm, kike <[email protected]> wrote:
> I have wrote a diferent class to validate the credential of the user
> in LDAP because the provides by web2py don't work with  the LDAP I
> use, but all the user for my aplication  are not in that LDAP, because
> of this I use the autentication provided by web2py in auth an I need
> agregate my other autentication method how i do it if my methods is in
> a file called logins.py and I need something like this:
> auth.settings.login_methods.append(And here call my autentication
> method)
>
> On May 5, 1:26 am, mdipierro <[email protected]> wrote:
>
> > Can you explain more?
>
> > On May 4, 8:11 pm, kike <[email protected]> wrote:
>
> > > I have defined a method to logins in  a logins.py, file external to
> > > web2py, and I want agregate to login_methods, for example if my metod
> > > names MyMethod and is in a file called logins.py how I agregated to
> > > auth.settings.login_methods.append(MyMethod).
> > > Thank for your help

Reply via email to