There is also auth.bulk_register(), which produces a form that allows you to register a set of email addresses and automatically sends out email notifications to the registrants (it does not set temporary passwords, so requires users to create passwords before gaining access). For it to work, you must set auth.settings.bulk_register_enabled=True (it is False by default).
Anthony On Tuesday, April 24, 2018 at 10:45:23 AM UTC-4, Anthony wrote: > > You can use the auth.register_bare() method to loop through a set of user > records, register each, and then send an email with the temporary password. > I think you can also leave out the password altogether, in which case, > users will have to go through the password reset process to create a > password and log in. > > Anthony > > On Monday, April 23, 2018 at 8:12:33 AM UTC-4, Yebach wrote: >> >> Hello >> >> I would like to create or import users into auth_users table and then >> send them e-mails with temp passwords that they could change to login into >> my app. >> I know it is not the most secure way but so far this is the only solution. >> >> How could I achieve that? Or what would be the best way to do that? >> >> thank you >> > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

