hi,

i trying to do a application that do a check
the table database take in user and password

what i want to do is to do a check
for both the username and the password
if both are correct, it will return the username
however i very sure on how to do the checking
and i do need some help on this


def log_in():
    form=SQLFORM(userdb.user,fields=['username','password'])
    if form.accepts(request.vars,session):
        redirect(URL(r=request,f='logged'))
        session.name = username
    return dict(form=form)

Thanks and Good day,
Madwalker
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to