What is the best (smart) way to approve pending users?
thanks
On 27 jul, 17:25, Hans <[email protected]> wrote:
> Grazie Massimo!
>
> The following works well for my need:
>
> auth.settings.registration_requires_verification = True
> auth.settings.registration_requires_approval = True
> auth.messages.verify_email = \
> 'Click on the linkhttps://mydomain/fips/default/user/verify_email/%(key)s
> to verify your FIPS registration'
> auth.settings.verify_email_onaccept = lambda form:\
> auth.settings.mailer.send(to='adminwithapprovalpo...@admindomain',
> \
> subject='FIPS Approval Pending',\
> message='Your action is required.
> Pleaseapproveuser %s asap.' % form.email)
>
> So the from me requested feature is there already and working well ;-)
>
> Hans
> On Jul 27, 2:25 am, mdipierro <[email protected]> wrote:
>
> > Yes but you can do already
>
> > auth.settings.registration_requires_approval = False
> > auth.settings.register_onaccept = lambda form:
> > auth.settings.mailer.send(....)
>
> > why a notification email should be more important (i.e. built-in) vs
> > any other action that may be required on login?
>
> > Massimo
>
> > On Jul 26, 12:05 pm, Hans <[email protected]>
> > wrote:
>
> > > For me it would be great if the approver gets a notification email as
> > > soon as his action is required. The idea is something like below
>
> > > auth.settings.registration_approver='youremailaddr...@yourdomain'
> > > auth.messages.approver_email = \
> > > 'A pending registration from %(email)s on application %
> > > (response.title)s requires your approval'
>
> > > Does that make sense?
>
> > > Thanks,
> > > Hans
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---