aboutsummaryrefslogtreecommitdiffstats
path: root/templates/registration/activation_complete.html
diff options
context:
space:
mode:
authorWeitian LI <liweitianux@gmail.com>2014-04-27 19:31:18 +0800
committerWeitian LI <liweitianux@gmail.com>2014-04-27 19:31:18 +0800
commitce1c277ee1904fb30df82f75a024822bd3411892 (patch)
tree30cafb886ea2da1e94a30082994251399d3f6df8 /templates/registration/activation_complete.html
parentb784a30dd8c92f8e7f49a15e564c8ff422e85f94 (diff)
downloaddjango-skaschool-ce1c277ee1904fb30df82f75a024822bd3411892.tar.bz2
* implemented function to auto login user after activation
o added 'login_on_activation' and connected to 'user_activated' signal o updated 'activation_complete.html' template
Diffstat (limited to 'templates/registration/activation_complete.html')
-rw-r--r--templates/registration/activation_complete.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/registration/activation_complete.html b/templates/registration/activation_complete.html
index d27622a..fb03a7e 100644
--- a/templates/registration/activation_complete.html
+++ b/templates/registration/activation_complete.html
@@ -15,7 +15,11 @@
<p class="lead">您已成功激活账户。</p>
<br>
+ {% if user.is_authenticated %}
+ <p><a href="{% url 'profile' %}" class="btn btn-primary">进入个人主页</a></p>
+ {% else %}
<p><a href="{% url 'login' %}" class="btn btn-primary">登录</a></p>
+ {% endif %}
</div>
{% endblock %}