auth.settings.register_onaccept =  post_register

it works, thank you :)

On Sat, Mar 10, 2012 at 2:44 PM, Alan Etkin <[email protected]> wrote:

> This is one way of solving it (by binding a function to an
> auth.settings attribute):
>
> # model code
>
> def post_register(form):
>    # the new user id is stored in auth.user_id
>    pass
>
> auth.settings.register_onaccept = give_create_permission
>
> On registration, you can perform auth management by accessing the new
> user id
>
> On 10 mar, 09:37, Vasile Ermicioi <[email protected]> wrote:
> > hi,
> >
> > currently a new user group is created for each new user after
> registration,
> > I disabled new groups to be created
> > auth.settings.create_user_groups = False
> >
> > but actually I need to set all new users to a default user group
> >
> > I know I will get a response, :) thank you in advance
>

Reply via email to