Merge pull request #920 from Benbb96/fix-login-errors

Fix some login errors when using demodesk
This commit is contained in:
Garret Wassermann 2021-01-04 15:51:20 -05:00 committed by GitHub
commit 6e1a1a7c87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 6 deletions

View File

@ -108,8 +108,8 @@ HELPDESK_SHOW_CHANGE_PASSWORD = True
# Instead of showing the public web portal first, # Instead of showing the public web portal first,
# we can instead redirect users straight to the login page. # we can instead redirect users straight to the login page.
HELPDESK_REDIRECT_TO_LOGIN_BY_DEFAULT = False HELPDESK_REDIRECT_TO_LOGIN_BY_DEFAULT = False
LOGIN_URL = '/login/' LOGIN_URL = 'helpdesk:login'
LOGIN_REDIRECT_URL = '/login/' LOGIN_REDIRECT_URL = 'helpdesk:home'
# Database # Database
# - by default, we use SQLite3 for the demo, but you can also # - by default, we use SQLite3 for the demo, but you can also

View File

@ -216,10 +216,6 @@ urlpatterns += [
login.login, login.login,
name='login'), name='login'),
url(r'^accounts/login/$',
login.login,
name='login'),
url(r'^logout/$', url(r'^logout/$',
auth_views.LogoutView.as_view( auth_views.LogoutView.as_view(
template_name='helpdesk/registration/login.html', template_name='helpdesk/registration/login.html',