Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
beat
beat.web
Commits
429884f4
Commit
429884f4
authored
May 02, 2020
by
Flavio TARSETTI
Browse files
[ui][registration] temporary link integration to new registration
parent
560d87ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
beat/web/ui/registration/models.py
View file @
429884f4
...
...
@@ -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
(
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment