I believe you need to implement you own signin controller to do that.

    def signin(self):

        username = request.params['username']
        password = request.params['password']
        users = GolotofUsersFromDatabase()
        user = users.user_by_username(username)
        url = '/'

        if user is None:
            c.login_error = _('Login failed')
        else:
            if user.password == users.encrypt(password):
                request.environ['paste.auth_tkt.set_user'](username)
                # I also set a 'remember me' cookie here
                if request.params.has_key('url') and
len(request.params['url']) != 0:
                    url = request.params['url']
            else:
                c.login_error = _('Login failed')
                user = None

        session.save()
        redirect_to(str(url))

On Sun, Sep 21, 2008 at 11:44 PM, <[EMAIL PROTECTED]> wrote:

>
> Hi all,
>        I am using Authkit AuthKit-0.4.1dev_r156-py2.5.egg & and it is
> working fine. I need to display "User name or Password invalid"
> message while user given wrong user id or password in login screen .
>
> Thanks,
> Santhosh
> >
>

--~--~---------~--~----~------------~-------~--~----~
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