diff options
author | Alvin Li <liweitianux@gmail.com> | 2013-10-05 02:12:28 +0800 |
---|---|---|
committer | Alvin Li <liweitianux@gmail.com> | 2013-10-05 02:12:28 +0800 |
commit | 46b4f8407f40cfcc0abf6c6e4fbc8fcbee00151d (patch) | |
tree | 57538c2540662dc2c9749d4e1e58cd9bcb472c9e /97suifangqa/apps/sfaccount/templates | |
parent | f552b41f4b337e6844f71c29ff177915abbfa417 (diff) | |
download | 97dev-46b4f8407f40cfcc0abf6c6e4fbc8fcbee00151d.tar.bz2 |
* 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
Diffstat (limited to '97suifangqa/apps/sfaccount/templates')
-rw-r--r-- | 97suifangqa/apps/sfaccount/templates/sfaccount/activation_email_body.html | 13 | ||||
-rw-r--r-- | 97suifangqa/apps/sfaccount/templates/sfaccount/activation_email_body.txt | 4 |
2 files changed, 15 insertions, 2 deletions
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 %} +<p>尊敬的 {{ username }},<p> + +<p>欢迎您加入97随访(97suifang.com)。<p> + +<p> +您的激活码为 {{ activation_key }},请在 {{ expiration_days }} 天内激活账户,直接打开以下链接进行激活:<br /> +http://www.97suifang.com/accounts/activate/{{ activation_key }}/ +</p> +<br /> + +<p>97随访 团队</p> +{% 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随访 团队 |