How to extend the Turbogears 2.1 login functionality

Posted by Marc on Stack Overflow See other posts from Stack Overflow or by Marc
Published on 2009-12-25T08:02:17Z Indexed on 2012/12/19 5:03 UTC
Read the original article Hit count: 192

Filed under:
|
|

I'm using Turbogears 2.1 and repoze.who/what and am having trouble figuring out how to extend the basic authentication functionality. I am essentially attempting to require users to activate their account via an emailed link before they can login. If they try to login without activating their account, I want to display an appropriate error message. The default Turbogears functionality simply displays one message for all errors.

I created my own authentication plugin which works fine. It won't allow users to login if they have not activated their account. However, the problem comes when I try to create the form and display custom error messages. How can I go about doing this?

Thanks

© Stack Overflow or respective owner

Related posts about python

Related posts about turbogears