mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 04:53:36 +00:00
confirmation: Use HTTPS in email link
(imported from commit 5bf74ba45c7d09495caa7ecfbf3af6bd80311b9e)
This commit is contained in:
@@ -50,7 +50,7 @@ class ConfirmationManager(models.Manager):
|
|||||||
def send_confirmation(self, obj, email_address):
|
def send_confirmation(self, obj, email_address):
|
||||||
confirmation_key = sha1(str(os.urandom(12)) + str(email_address)).hexdigest()
|
confirmation_key = sha1(str(os.urandom(12)) + str(email_address)).hexdigest()
|
||||||
current_site = Site.objects.get_current()
|
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}))
|
reverse('confirmation.views.confirm', kwargs={'confirmation_key': confirmation_key}))
|
||||||
context = Context({
|
context = Context({
|
||||||
'activate_url': activate_url,
|
'activate_url': activate_url,
|
||||||
|
|||||||
Reference in New Issue
Block a user