registration settings not working

40 views
Skip to first unread message

Yebach

unread,
Nov 10, 2014, 5:21:31 AM11/10/14
to web...@googlegroups.com
Hello

In my db.py i have the following settings

auth.settings.registration_requires_verification = True
auth.settings.registration_requires_approval = True/False  - it is always Fasle - user can login even if I set to True??????
auth.settings.reset_password_requires_verification = True


mail=Mail() 
auth.settings.mailer=mail
mail.settings.server='xxxx:25'
mail.settings.sender='sen...@algit.si'
mail.settings.login='xxxx:pass'
mail.settings.tls = False
              
auth.messages.verify_email = 'Click on the link http://'+request.env.http_host+URL(r=request,c='default',f='user',args=['verify_email'])+'/%(key)s to verify your email'
auth.settings.reset_password_requires_verification = True
auth.messages.reset_password = 'Click on the link http://'+\
      request.env.http_host+\
      URL(r=request,c='default',f='user',args=['reset_password'])+\
      '/%(key)s to reset your password'
    

none of this seems to be working.
Mail server is ok because 
mail.send('vi...@net.si',          'Message subject',          'Plain text body of the message') is working


Any suggestions?

Massimo Di Pierro

unread,
Nov 17, 2014, 11:44:27 PM11/17/14
to web...@googlegroups.com
what is not working?


On Monday, 10 November 2014 04:21:31 UTC-6, Yebach wrote:
Hello

In my db.py i have the following settings

auth.settings.registration_requires_verification = True
auth.settings.registration_requires_approval = True/False  - it is always Fasle - user can login even if I set to True??????
auth.settings.reset_password_requires_verification = True


mail=Mail() 
auth.settings.mailer=mail
mail.settings.server='xxxx:25'
mail.settings.sender='sender@algit.si'
mail.settings.login='xxxx:pass'
mail.settings.tls = False
              
auth.messages.verify_email = 'Click on the link http://'+request.env.http_host+URL(r=request,c='default',f='user',args=['verify_email'])+'/%(key)s to verify your email'
auth.settings.reset_password_requires_verification = True
auth.messages.reset_password = 'Click on the link http://'+\
      request.env.http_host+\
      URL(r=request,c='default',f='user',args=['reset_password'])+\
      '/%(key)s to reset your password'
    

Vid Ogris

unread,
Nov 18, 2014, 2:55:48 AM11/18/14
to web...@googlegroups.com
mail was not send to verify a new user. I found out that is because I was not using auth form but SQLFORM.factory. After I changed mail is now send

--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/afim2XigV3o/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Lep pozdrav 

Vid Ogris


Reply all
Reply to author
Forward
0 new messages