confirmation: Use HTTPS in email link

(imported from commit 5bf74ba45c7d09495caa7ecfbf3af6bd80311b9e)
This commit is contained in:
Keegan McAllister 2012-10-29 11:00:49 -04:00
parent a1b72f9d05
commit f55c8a4397
1 changed files with 1 additions and 1 deletions

View File

@ -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,