From 46b4f8407f40cfcc0abf6c6e4fbc8fcbee00151d Mon Sep 17 00:00:00 2001 From: Alvin Li Date: Sat, 5 Oct 2013 02:12:28 +0800 Subject: * improved 'signup' function for sfaccount * changed 'redirect url' for 'sfaccount.views.signup_view' * improved 'sfaccount.models.Account', added 'delete_account()' method; added 'html' type email templates for activation email --- .../templates/sfaccount/activation_email_body.html | 13 +++++++++++++ .../sfaccount/templates/sfaccount/activation_email_body.txt | 4 ++-- 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 97suifangqa/apps/sfaccount/templates/sfaccount/activation_email_body.html (limited to '97suifangqa/apps/sfaccount/templates') diff --git a/97suifangqa/apps/sfaccount/templates/sfaccount/activation_email_body.html b/97suifangqa/apps/sfaccount/templates/sfaccount/activation_email_body.html new file mode 100644 index 0000000..9792ad5 --- /dev/null +++ b/97suifangqa/apps/sfaccount/templates/sfaccount/activation_email_body.html @@ -0,0 +1,13 @@ +{% autoescape off %} +

尊敬的 {{ username }},

+ +

欢迎您加入97随访(97suifang.com)。

+ +

+您的激活码为 {{ activation_key }},请在 {{ expiration_days }} 天内激活账户,直接打开以下链接进行激活:
+http://www.97suifang.com/accounts/activate/{{ activation_key }}/ +

+
+ +

97随访 团队

+{% endautoescape %} diff --git a/97suifangqa/apps/sfaccount/templates/sfaccount/activation_email_body.txt b/97suifangqa/apps/sfaccount/templates/sfaccount/activation_email_body.txt index 32be3e9..b479ff0 100644 --- a/97suifangqa/apps/sfaccount/templates/sfaccount/activation_email_body.txt +++ b/97suifangqa/apps/sfaccount/templates/sfaccount/activation_email_body.txt @@ -1,9 +1,9 @@ 尊敬的 {{ username }}, -感谢您注册97随访(97suifang.com)。 +欢迎您加入97随访(97suifang.com)。 您的激活码为 {{ activation_key }},请在 {{ expiration_days }} 天内激活账户,直接打开以下链接进行激活: http://www.97suifang.com/accounts/activate/{{ activation_key }}/ -97随访 +97随访 团队 -- cgit v1.2.2