Have you confirmed the 'mail' is not None in your model file?

On Wednesday, September 28, 2011 5:11:00 AM UTC-4, Kenneth wrote:
>
>  I´m still trying to troubleshoot this error. If I look at 
> auth.settings.mailer it says it is empty. How come? 
>
> In my models file if have auth.settings.mailer=mail
>
> I added to tools.py in gluon:
> return self.settings.mailer under def request_reset_password(
>
> so no wonder it says function is disabled, but why is it None.
>
>
> Kenneth
>
>  I have:
>
> auth=Auth(globals(),db)                      # authentication/authorization
>
> mail=Mail()                                    # mailer
> mail.settings.sender='m...@email.address.com'          # your email
> mail.settings.server='logging' #calhost:25'            # your SMTP server
> # mail.settings.login='username:password'      # your credentials or None
> mail.settings.login=None
>
> auth.settings.mailer=mail                    # for user email verification
>
> And it still gives my Function disabled
>
>
> Kenneth
>
>
>
> More likely, perhaps you don't have Mail set up (i.e., 
> auth.settings.mailer) -- without that, you'll get a flash message saying the 
> function is disabled. 
>
>
>  Anthony
>
> On Thursday, September 22, 2011 9:05:53 PM UTC-4, Anthony wrote: 
>>
>> Is your app a CAS provider? I think that will automatically disable 
>> request_reset_password. 
>>
>>  Anthony
>>
>> On Thursday, September 22, 2011 8:05:52 PM UTC-4, Kenneth wrote: 
>>>
>>> Hi list members, 
>>>
>>> I have disabled the request_reset_password function somehow.
>>>
>>> What different ways are there to disable this? Everytime I visit the 
>>> default/user/request_reset_password I get an Function disabled Flash.
>>>
>>> I have this, but should not have anything to do with this.
>>> auth.settings.actions_disabled=['register']
>>>
>>> In my controlers/default.py
>>> def user():
>>>      """
>>>      exposes:
>>>      http://..../[app]/default/user/login
>>>      http://..../[app]/default/user/logout
>>>      http://..../[app]/default/user/profile
>>>      http://..../[app]/default/user/request_reset_password
>>>      http://..../[app]/default/user/retrieve_password
>>>      http://..../[app]/default/user/change_password
>>>      use @auth.requires_login()
>>>          @auth.requires_membership('group name')
>>>          @auth.requires_permission('read','table name',record_id)
>>>      to decorate functions that need access control
>>>      """
>>>      return dict(form=auth())
>>>
>>> Any ideas where to look.
>>>
>>>
>>>    
>  
> 

Reply via email to