Thanks, but in the typical application structure, where would you place 
these function invocations? In my case, am working on an existing 
application instance, and want to easily add a new user into the db, if 
possible, merely overriding the password of an existing account with a new 
one. Just can't find good docs - or am looking in the wrong place?


On Tuesday, 24 April 2018 17:45:23 UTC+3, 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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to