X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=planetstack%2Fcore%2Fmodels%2Fuser.py;h=6b5b061239c0b660315bfee0101f22bb197dc0d8;hb=51e7d40824c31c634ea32d76a911360e3a7ee7cf;hp=eec0927b7cb28df6e5715aba3c55d5aff634d560;hpb=01ef649428b0452c059b679928f324470342bc18;p=plstackapi.git diff --git a/planetstack/core/models/user.py b/planetstack/core/models/user.py index eec0927..6b5b061 100644 --- a/planetstack/core/models/user.py +++ b/planetstack/core/models/user.py @@ -182,7 +182,7 @@ class User(AbstractBaseUser): self.set_password(password) subject, from_email, to = 'OpenCloud Account Credentials', 'support@opencloud.us', str(self.email) text_content = 'This is an important message.' - userUrl=get_request().META['HTTP_ORIGIN'] + userUrl="http://%s/" % get_request().get_host() html_content = """

Your account has been created on OpenCloud. Please log in here to activate your account

Username: """+self.email+"""
Temporary Password: """+password+"""
Please change your password once you successully login into the site.

""" msg = EmailMultiAlternatives(subject,text_content, from_email, [to]) msg.attach_alternative(html_content, "text/html")