Ok, thats the way I did it...

El 06/08/2009 7:06, mdipierro escribió:
> remove the registration_key using appadmin or write your own
> interface.
>
> On Aug 5, 9:18 pm, Alejandro Fanjul<alex.fan...@gmail.com>  wrote:
>    
>> What is the best (smart) way to approve pending users?
>> thanks
>>
>> On 27 jul, 17:25, Hans<johann.scheibelho...@easytouch-edv.com>  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<mdipie...@cs.depaul.edu>  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<johann.scheibelho...@easytouch-edv.com>
>>>> 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
>>>>>            
> >
>
>    

-- 
Alejandro Fanjul Fdez.
alex.fan...@gmail.com
www.mhproject.org

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to