Did you update the login URL in app_cfg? It should look like:
    app_cfg.sa_auth.login_url = '/sample/login'

More info here:
http://www.turbogears.org/2.1/docs/main/Auth/Customization.html
http://what.repoze.org/docs/plugins/quickstart/#repoze.what.plugins.quickstart.setup_sql_auth

HTH.

 - Gustavo.

On Jun 2, 10:57 am, Dakila <[email protected]> wrote:
> Hi All,
>
> Im trying to move the login method into another controller.
> What I did was copy controller.template to sample.py, added the login
> method from root.py and mounted the SampleController instance. When I
> tried accessinghttp://localhost:8080/sample/loginI get the error
>
>   login_counter = request.environ['repoze.who.logins']
> KeyError: 'repoze.who.logins'
>
> Im using tg 2.1b2
>
> Regards,
> Dakila

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en.

Reply via email to