Maybe manual authentication [1] helps you.

[1] 
http://web2py.com/books/default/chapter/29/09/access-control#Manual-Authentication

On Thu, Sep 19, 2013 at 9:06 AM, Koen Vanhees <vanheesk...@gmail.com> wrote:
> All,
>
> I have two different authentication techniques in my app (local and AD).
> All works well, but that means I have two login forms, and that's pretty
> inconvenient.
> Is it possible to create a completely custom form, with only a username and
> password, and when pressing "Login", having it check against the two defined
> authentication methods in the background?
> I have been looking for a way to do that, but it doesn't seem to be easy.
> Auth comes with predefined forms and I'm kind of lost here.
> Any suggestions are welcome!
>
> Thanks!
>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to