Thanks for you help! About auth.settings.controller I see in the browser a page with content: invalid function (default/user) The function exists in piripicchio controller, not in default! It seems that auth.settings.controller doesn't work. Where my mistake? About auth.settings.registration: - OK, now it is clear - but @auth.requires_login() forbids the access until I set profile? Thanks, leone
On Dec 30, 1:49 pm, Kaer <[email protected]> wrote: > On Dec 30, 1:10 pm, leone <[email protected]> wrote: > > > Hi. > > I need some help in auth settings: > > > I define > > auth.settings.controller = 'piripicchio' > > but I continue to receive error about missing '/default/user' function > > (I have put user in piripicchio controller). > > The trace would be helpful (at least if you accept help from people > like me ;-)) > > > I set > > auth.settings.mailer = mail > > auth.settings.registration_requires_verification = True > > auth.settings.registration_requires_approval = True > > but I not received any mail. > > Mail settings are ok (I success using it in others functions) and I > > authorize myself with my email. > > And: what means > > .....Approval consists of setting registration_key=='' via appadmin or > > programmatically.... as said in book??? > > That means that if you want to approve a profile, you need to put an > empty string in its registration_key field (auth_user table) > You can do that in appadmin (probably > :http://localhost:8000/YOUR_APP/appadmin/select/db?query=db.auth_user.id>0) > or programmatically with something like : > > db(db.auth_user.id==1).update(registration_key="") > > > > > > > > > Have you a code example? > > Thanks in advance and happy new year > > leone

