1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-06-21 01:48:21 +02:00

Fix email validation, turbolinks link

This commit is contained in:
Yohann D'ANELLO
2020-04-27 17:59:34 +02:00
parent a83ab4bf85
commit eb39aff1ab
3 changed files with 3 additions and 3 deletions

View File

@ -137,7 +137,7 @@ class Profile(models.Model):
'user': self.user,
'domain': os.getenv("NOTE_URL", "note.example.com"),
'token': email_validation_token.make_token(self.user),
'uid': urlsafe_base64_encode(force_bytes(self.user.pk)).decode('UTF-8'),
'uid': urlsafe_base64_encode(force_bytes(self.user.pk)),
})
self.user.email_user(subject, message)