Commit 39554253 authored by Flavio TARSETTI's avatar Flavio TARSETTI
Browse files

[ui][views/registration-templates] add quick link accept for new supervisor...

[ui][views/registration-templates] add quick link accept for new supervisor for already valid supervisee
parent 680b9a38
......@@ -12,6 +12,9 @@ Username: {{ supervisee.username }}
If you don't do this the supervisee will not be able to use his account in
future and will not be recognized as your supervisee.
You can also click on the following direct link to accomplish this action and accept this new supervisee
at {{ prefix }}/accounts/validation/{{ temp_url }}
If you are having problems to activate your supervisee account, contact a member of our
support staff at {{ prefix }}{% url 'contact' %}.
......@@ -46,7 +46,9 @@ from rest_framework.authtoken.models import Token
from ..import __version__
from ..common.models import Shareable
from ..accounts.models import Profile, SupervisionTrack
from ..accounts.models import Profile
from ..accounts.models import SupervisionTrack
from ..accounts.models import TemporaryUrl
from ..utils import mail
from .registration.forms import BlockedUserRevalidationForm
......@@ -132,10 +134,12 @@ def blocked_user_reactivation(request):
parsed_url = urlparse(settings.URL_PREFIX)
server_address = '%s://%s' % (parsed_url.scheme, parsed_url.hostname)
temp_url = TemporaryUrl.objects.create_temporary_url(TemporaryUrl.VALIDATION, supervisiontrack)
context = {
'supervisor': supervisor,
'supervisee': supervisee,
'prefix': server_address,
'temp_url': temp_url.url_hash,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment