Skip to content
Snippets Groups Projects
Commit 429884f4 authored by Flavio TARSETTI's avatar Flavio TARSETTI
Browse files

[ui][registration] temporary link integration to new registration

parent 560d87ef
No related branches found
No related tags found
1 merge request!328Improve automatic emails with temporary urls
......@@ -43,6 +43,7 @@ from django.utils.translation import ugettext_lazy as _
from ...accounts.models import SupervisionTrack
from ...accounts.models import Profile
from ...accounts.models import TemporaryUrl
from ...utils import mail
SHA1_RE = re.compile("^[a-f0-9]{40}$")
......@@ -143,10 +144,14 @@ class RegistrationManager(models.Manager):
parsed_url.hostname,
)
temp_url = TemporaryUrl()
temp_url._generate_temporary_url(TemporaryUrl.VALIDATION, supervisiontrack)
context = {
"supervisor": supervisor_user,
"supervisee": user,
"prefix": server_address,
"temp_url": temp_url.url_hash,
}
mail.send_email(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment