From f55c8a4397fc91e65b59324d4ba86bfa3cc9b566 Mon Sep 17 00:00:00 2001 From: Keegan McAllister Date: Mon, 29 Oct 2012 11:00:49 -0400 Subject: [PATCH] confirmation: Use HTTPS in email link (imported from commit 5bf74ba45c7d09495caa7ecfbf3af6bd80311b9e) --- confirmation/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confirmation/models.py b/confirmation/models.py index a8720a23f3..67fde91f1d 100644 --- a/confirmation/models.py +++ b/confirmation/models.py @@ -50,7 +50,7 @@ class ConfirmationManager(models.Manager): def send_confirmation(self, obj, email_address): confirmation_key = sha1(str(os.urandom(12)) + str(email_address)).hexdigest() current_site = Site.objects.get_current() - activate_url = u'http://%s%s' % (current_site.domain, + activate_url = u'https://%s%s' % (current_site.domain, reverse('confirmation.views.confirm', kwargs={'confirmation_key': confirmation_key})) context = Context({ 'activate_url': activate_url,