Use the main login page instead of the admin one

This commit is contained in:
Rodolphe Breard 2019-07-27 17:35:49 +02:00
parent 57fda2f5e1
commit c07f2f11a9
2 changed files with 3 additions and 3 deletions

View file

@ -42,12 +42,12 @@ def _switch_hidden(request, obj, pk):
return redirect(next_page)
@staff_member_required
@staff_member_required(login_url="login")
def switch_log_source(request, pk):
return _switch_hidden(request, LogSource, pk)
@staff_member_required
@staff_member_required(login_url="login")
def switch_log_entry(request, pk):
return _switch_hidden(request, LogEntry, pk)

View file

@ -5,7 +5,7 @@ from .models import SharedPasswordAccess
from .forms import AuthForm
@staff_member_required
@staff_member_required(login_url="login")
def list_passwords(request):
try:
pwd = request.POST["pwdb_check"]