Looking in gluon > tools.py, it seems that when a registration is taking 
place, it doesn't call any framework code to execute a registration.
Rather, it simply does the registration actions inline, under form.accepts.

/gluon/tools.py +2308
if form.accepts(request, session, formname='register',
                        onvalidation=onvalidation, 
hideerror=self.settings.hideerror):

It's a little hacky to just copy the code out to where you want to use it, 
but unless we propose moving it to another method in Auth, we're not going 
to have a way to reuse the existing code.


On Tuesday, April 23, 2013 6:04:04 PM UTC-7, Mike D wrote:
>
> Is there a way to do user registration manually and still get all the 
> goodies that come with web2py registration (email verification, admin 
> approval, etc)? Something similar to login_bare() but for registration? 
> Just adding a user to the auth_user table doesn't trigger any of the 
> automatic stuff. 
>
> The reason I ask is I have a desktop client that talks to my web2py server 
> via JSON RPC and I'd like to enable users to register from there without 
> having to do everything else myself.
>
> Thanks,
> Mike
>

-- 

--- 
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/groups/opt_out.


Reply via email to