瀏覽代碼

Fix link in mail when user with similar name already exists

master
piernov 9 年之前
父節點
當前提交
67631117e5
共有 1 個檔案被更改,包括 3 行新增2 行删除
  1. +3
    -2
      jm2l/views.py

+ 3
- 2
jm2l/views.py 查看文件

@@ -653,14 +653,15 @@ def participer(request):
CheckExist=None
if CheckExist:
MyLink = CheckExist.my_hash
NewUser = CheckExist
else:
DBSession.add(TmpUsr)
DBSession.flush()
MyLink = TmpUsr.my_hash
NewUser = TmpUsr

mailer = request.registry['mailer']
# Send the Welcome Mail
NewUser = TmpUsr
mailer = request.registry['mailer']
# Prepare Plain Text Message :
Mail_template = Template(filename='jm2l/templates/mail_plain.mako')
mail_plain = Mail_template.render(request=request, User=NewUser, action="Welcome")


Loading…
取消
儲存