On Friday, December 30, 2011 7:26:31 AM UTC-5, Alan Etkin wrote:
>
> I'd create a custom form with new user fields, decorate it with 
> @auth.requires_membership("<admin group>"), and on validation, use the 
> auth.get_or_create_user() function passing the collected form data. I 
> have not tested it, and maybe there is a simpler way.


That should work, though note that get_or_create_user will set auth.user to 
the record of the new user, so you have to save the admin's auth.user 
record and reset auth.user back to the admin's record after the insert.

See here for more details: http://stackoverflow.com/a/8681343/440323
 

> I think that 
> there would be good that web2py had a feature as login_bare for this 
> case, "register_bare" or alike.


Good idea.

Anthony 

Reply via email to