Does this seem like a reasonable way to handle the auth.messages.verify_email/reset_password links?

if request.env.https == 'on':
  url_prefix = 'https'
else:
  url_prefix = 'http'
auth.messages.verify_email = 'Click on the link '+url_prefix+'://'+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 '+url_prefix+'://'+request.env.http_host+URL(r=request,c='default',f='user',args=['reset_password'])+'/%(key)s to reset your password'

--
Andrew Thompson
http://aktzero.com/

Reply via email to