How to create a user progmatically?

83 views
Skip to first unread message

Eduardo Cruz

unread,
Apr 17, 2014, 11:25:07 AM4/17/14
to web...@googlegroups.com
How can I create a user progmatically? I'm trying to make a custom form for login/register/etc

Anthony

unread,
Apr 17, 2014, 11:47:00 AM4/17/14
to web...@googlegroups.com
There is

auth.get_or_create_user(keys=dict(first_name='Eduardo', ...), login=False)

Anthony


On Thursday, April 17, 2014 11:25:07 AM UTC-4, Eduardo Cruz wrote:

Eduardo Cruz

unread,
Apr 17, 2014, 11:58:23 AM4/17/14
to web...@googlegroups.com
Thanks but how can I crypt the password?


--
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 a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/sLCxZmK7tmQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Anthony

unread,
Apr 17, 2014, 1:57:57 PM4/17/14
to web...@googlegroups.com
password=db.auth_user.password.validate('mypassword')[0]

Anthony



On Thursday, April 17, 2014 11:58:23 AM UTC-4, Eduardo Cruz wrote:
Thanks but how can I crypt the password?
On 17 April 2014 11:47, Anthony <abas...@gmail.com> wrote:
There is

auth.get_or_create_user(keys=dict(first_name='Eduardo', ...), login=False)

Anthony


On Thursday, April 17, 2014 11:25:07 AM UTC-4, Eduardo Cruz wrote:
How can I create a user progmatically? I'm trying to make a custom form for login/register/etc

--
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 a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/sLCxZmK7tmQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Eduardo Cruz

unread,
Apr 17, 2014, 4:08:44 PM4/17/14
to web...@googlegroups.com
Thanks :)


On Thursday, April 17, 2014 1:57:57 PM UTC-4, Anthony wrote:
password=db.auth_user.password.validate('mypassword')[0]

Anthony


On Thursday, April 17, 2014 11:58:23 AM UTC-4, Eduardo Cruz wrote:
Thanks but how can I crypt the password?
On 17 April 2014 11:47, Anthony <abas...@gmail.com> wrote:
There is

auth.get_or_create_user(keys=dict(first_name='Eduardo', ...), login=False)

Anthony


On Thursday, April 17, 2014 11:25:07 AM UTC-4, Eduardo Cruz wrote:
How can I create a user progmatically? I'm trying to make a custom form for login/register/etc

--
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 a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/sLCxZmK7tmQ/unsubscribe.
To unsubscribe from this group and all its topics, 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