Hello, {username}
请输入验证码完成注册,有效期10分钟:
{captcha}class TemplateService: @staticmethod def log_api(): api_list = [ 'paymentCycle/queryPayCycle', 'paymentCycle/cancelPayCycle', 'payCycle/paypalCycleNotify', 'payCycle/paypalCycleReturn', ] return api_list @staticmethod def email_message(type, language): if language != 'cn': language = 'en' if type == 'register_code': data = { 'cn': { 'title': '注册码获取邮件', 'body': """
' '{domain}/account/activate/{token}' '
'
},
'en': {
'title': 'Registration activation link',
'body': 'Dear user {username}, Hello!' +
'
' + 'Congratulations, you have successfully registered users of the Zhuhai Internet security system, welcome you to use the system!' +
'
' + 'In order to ensure that you can receive timely notification of the site, and timely access to relevant information.Please click on the following open link to verify your mailbox, and you can use the mailbox to retrieve it when you forget your account password.' +
'
' + '
{domain}/account/activate/{token}
' } } elif type == 'forget': data = { 'cn': { 'title': '重置密码信息', 'body': '您好{username}\n' + '您已经请求了重置密码,可以点击下面的链接来重置密码\n' + '
\n' + '更改后的密码为: {reset_pwd}\n如果你没有请求重置密码,请忽略这封邮件.\n在你点击上面链接修改密码之前,你的密码将会保持不变\n' }, 'en': { 'title': 'Reset the password information', 'body': 'Hello! Dear {username}.