commit in login page

This commit is contained in:
Cayo Puigdefabregas 2024-10-18 12:03:26 +02:00
parent f87897de85
commit a08428c90b
2 changed files with 3 additions and 1 deletions

View file

@ -42,4 +42,5 @@
<div id="login-footer" class="mt-3">
<a href="{% url 'login:password_reset' %}" data-toggle="modal" data-target="#forgotPasswordModal">{% trans "Forgot your password? Click here to recover" %}</a>
</div>
{% endblock %}

View file

@ -1,5 +1,6 @@
import logging
from django.conf import settings
from django.urls import reverse_lazy
from django.contrib.auth import views as auth_views
from django.contrib.auth import login as auth_login
@ -17,7 +18,7 @@ class LoginView(auth_views.LoginView):
extra_context = {
'title': _('Login'),
'success_url': reverse_lazy('dashboard:unassigned_devices'),
# 'commit_id': settings.COMMIT,
'commit_id': settings.COMMIT,
}
def get(self, request, *args, **kwargs):