From ce1c277ee1904fb30df82f75a024822bd3411892 Mon Sep 17 00:00:00 2001 From: Weitian LI Date: Sun, 27 Apr 2014 19:31:18 +0800 Subject: * 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 --- templates/registration/activation_complete.html | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'templates') 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 @@

您已成功激活账户。


+ {% if user.is_authenticated %} +

进入个人主页

+ {% else %}

登录

+ {% endif %} {% endblock %} -- cgit v1.2.2