Massimo, Perhaps we should have more details on that in the guide. Horst, You create your view in the same file you created the controller. If you created Auth() in default.py then you create a /default/login.html and it works. Same with register and so forth. That password hash, I can't remember anymore. I just trust it is not plain text.
On Thu, 2009-05-21 at 10:06 +1000, Horst Herb wrote: > I want to create my own login forms and need to create users programmatically. > I expected some function such as login(username, cleartextpassword) in > the auth class, and also something like cryptpwd(cleartextpassword) > Auth however seems to break the MVC paradigm completely. > > Questions: > 1) what do I have to do to programmatically "log in" somebody via auth > (retaining all the auth goodies) > 2) how is the password encrypted / hashed? > > Horst > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---