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, 'user': self.user,
'domain': os.getenv("NOTE_URL", "note.example.com"), 'domain': os.getenv("NOTE_URL", "note.example.com"),
'token': email_validation_token.make_token(self.user), '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) self.user.email_user(subject, message)

@ -1 +1 @@
Subproject commit 1090fe0b26928c0ee2205cfbebae0605dde3f370 Subproject commit f0aa426950b9b867bf99233795e260871be2cb99

View File

@ -121,7 +121,7 @@ SPDX-License-Identifier: GPL-3.0-or-later
</li> </li>
{% if user.is_staff %} {% if user.is_staff %}
<li class="nav-item active"> <li class="nav-item active">
<a class="nav-link" href="{% url 'admin:index' %}"><i class="fas fa-user-cog"></i> {% trans 'Administration' %}</a> <a data-turbolinks="false" class="nav-link" href="{% url 'admin:index' %}"><i class="fas fa-user-cog"></i> {% trans 'Administration' %}</a>
</li> </li>
{% endif %} {% endif %}
</ul> </ul>