Hi!
I'm pretty new to pylons framework and repoze.what repoze.who plugins,
so i have few questions.
I've searched the web but no results.

First of all, i've got a login form for users.
My configuration for repoze.what looks like this

return setup_sql_auth(
        app,
        User,
        Groups,
        Permissions,
        meta.Session,
        login_url='/login/index',
        post_login_url='/main/cpanel',
        post_logout_url='/login/index',
        login_handler='/login/login',
        logout_handler='/login/logout',
        cookie_secret=config['cookie_secret'],
        cookie_timeout=600,
        cookie_reissue_time=500,
        translations={
            'validate_password' : 'check_pass',
            'user_name': 'login',
            'group_name': 'name',
            'permission_name': 'name'
        })

When a users is loggin in, the application should update the
"last_visit_date" column in db, this action is placed in "/login/
login", but at the process of user login this action is ignored.
That's the first question, why and how to fix this?

The second part is the Error handling in repoze.what/who.
When user puts the wrong pass/name it rise an Exception 401 (that's
ok) and displays it in a standard pylons debuge mode, but where can i
customize it to show restricted access messages?

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en.

Reply via email to