i got some problem and i still not able to do the username and password check
i was told to do this way def log_in(): form=SQLFORM(userdb.user,fields=['username','password']) if form.accepts(form,request.vars,session): rows=userdb(userdb.user.username==form.vars.username)\ (userdb.user.password==form.vars.password)\ (userdb.user.password=='').select() if rows: response.flash = "logged in" else: response.flash = "invalid username/password" return dict(form=form) but it did not work at all, can anyone please help? Thanks --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---