Use the main login page instead of the admin one
This commit is contained in:
parent
57fda2f5e1
commit
c07f2f11a9
2 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
||||
|
|
|
@ -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"]
|
||||
|
|
Loading…
Reference in a new issue