Skip to content

Commit

Permalink
Merge pull request #920 from Benbb96/fix-login-errors
Browse files Browse the repository at this point in the history
Fix some login errors when using demodesk
  • Loading branch information
gwasser committed Jan 4, 2021
2 parents 63790c5 + cdfc895 commit 6e1a1a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions demo/demodesk/config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@
# Instead of showing the public web portal first,
# we can instead redirect users straight to the login page.
HELPDESK_REDIRECT_TO_LOGIN_BY_DEFAULT = False
LOGIN_URL = '/login/'
LOGIN_REDIRECT_URL = '/login/'
LOGIN_URL = 'helpdesk:login'
LOGIN_REDIRECT_URL = 'helpdesk:home'

# Database
# - by default, we use SQLite3 for the demo, but you can also
Expand Down
4 changes: 0 additions & 4 deletions helpdesk/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,6 @@ def get_context_data(self, **kwargs):
url(r'^login/$',
login.login,
name='login'),

url(r'^accounts/login/$',
login.login,
name='login'),

url(r'^logout/$',
auth_views.LogoutView.as_view(
Expand Down

0 comments on commit 6e1a1a7

Please sign in to comment.