In the def user() function I have the following lines of code:

if request.args(0)=='login':
        form.element(_type='submit').update(_value='Log in')
        session.alert='alert-success'

The problem is that when login fails the session.alert should be 
'alert-error'
Is there a way to check whether login fails or succeeds?

Kind regards,

Annet

-- 

--- 
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to