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

🐛 A new user can't take an existing alias as username

This commit is contained in:
Yohann D'ANELLO
2020-08-03 12:35:51 +02:00
parent 66defee3ea
commit fbf3a0bcf6
7 changed files with 525 additions and 464 deletions

View File

@ -139,7 +139,7 @@ class Profile(models.Model):
'token': email_validation_token.make_token(self.user),
'uid': urlsafe_base64_encode(force_bytes(self.user.pk)),
})
html = loader.render_to_string('registration/mails/email_validation_email.txt',
html = loader.render_to_string('registration/mails/email_validation_email.html',
{
'user': self.user,
'domain': os.getenv("NOTE_URL", "note.example.com"),