Re: [web2py] How to call user/register with pre-defined fields (name, email)?

2011-07-05 Thread Luis Goncalves
For the record, here's how I was able to implement an "by invitation only" registration form. Assuming that the user received an email with a link of form http://.../default/user/register?token=sfaasdfasfa, and assuming I have defined a db table 'registrant' associating a token with a name a

Re: [web2py] How to call user/register with pre-defined fields (name, email)?

2011-07-04 Thread Luis Goncalves
That's a great idea, David! I think I need to know, then: - how to programmatically create registered users - how to programmatically send them the 'reset password' link. Ideally, the person that can invite users will have a simple webpage form where they can input names and email addresses, an

Re: [web2py] How to call user/register with pre-defined fields (name, email)?

2011-07-04 Thread Luis Goncalves
Thanks, pbreit, for the link! Long thread!!! I read it all, but am still unclear how to force registration with a pre-defined name and email (I'll have DB entries such that each unique invite token is associated with a pre-defined name and email). I was hoping to do something like this: def u

Re: [web2py] How to call user/register with pre-defined fields (name, email)?

2011-07-04 Thread pbreit
Check this recent thread: https://groups.google.com/d/topic/web2py/QZ11R6eYQdM/discussion

Re: [web2py] How to call user/register with pre-defined fields (name, email)?

2011-07-04 Thread David J
You can easily do this. Just think its the reset password function with a twist. On Jul 4, 2011 8:38 PM, "Luis Goncalves" wrote: > Hello! > > The website I am developing will be "invitation only": > > - a user gets an email invitation to register with a link to the site (with > an identifying toke

Re: [web2py] How to call user/register with pre-defined fields (name, email)?

2011-07-04 Thread Richard Vézina
This section of the book could help : http://www.web2py.com/book/default/chapter/08?search=setting#Settings-and-Messages Richard On Mon, Jul 4, 2011 at 8:37 PM, Luis Goncalves wrote: > Hello! > > The website I am developing will be "invitation only": > > - a user gets an email invitation to reg

[web2py] How to call user/register with pre-defined fields (name, email)?

2011-07-04 Thread Luis Goncalves
Hello! The website I am developing will be "invitation only": - a user gets an email invitation to register with a link to the site (with an identifying token in the link) - the link takes the user to the website, where he can register - to register, he need only define the password, since the