create dummy users programmatically

36 views
Skip to first unread message

Pierre

unread,
May 19, 2016, 9:34:02 AM5/19/16
to web2py-users
for testing purposes:

creation works but dummy users cannot login. There seems to be a password problem (not encrypted)
how do I encrypt dummy passwords in a db.auth_user.insert instruction ?


my dummy users are complaining a lot about this : They all want to become unique and real    :))     and also rich.............(paradox ?)

Richard Vézina

unread,
May 19, 2016, 11:22:25 AM5/19/16
to web2py-users
Use dedicated web2py function auth.register_bare() for instance... Look at test case here : https://github.com/web2py/web2py/blob/master/gluon/tests/test_tools.py#L647

Richard

--
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+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages