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

Reply via email to