# insert all the emails
for email in emails:
     db.auth._user.insert(email=email)
# ask everybody to reset their password for login
for user in db(db.auth_user.email.belongs(emails)).select():
     auth.email_reset_password(user)



On Wednesday, 8 August 2012 12:47:57 UTC-5, Alec Taylor wrote:
>
> I am about to import a list of people into web2py.
>
> Each person's record has an email address at the very least.
>
> One purpose for moving to web2py is to allow people to update their 
> details, and only their details.
>
> How would I go about generating accounts for people, emailing them their 
> validation key, then allowing those users with matching email-addresses to 
> edit said record?
>
> Thanks for all suggestions,
>
> Alec Taylor
>
> FYI: Login will be done with LinkedIn, and this whole system will be 
> open-sourced. 
>

-- 



Reply via email to