Skip to content

Commit

Permalink
Merge pull request #79 from johngian/fix-logout-call
Browse files Browse the repository at this point in the history
Fix logout url call after import.
  • Loading branch information
johngian committed Jan 13, 2017
2 parents 424de8b + 8831c71 commit 5d46cf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mozilla_django_oidc/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def dispatch(self, request, *args, **kwargs):
# Check if a method exists to build the url to logout the user from the OP
logout_from_op = import_from_settings('OIDC_OP_LOGOUT_URL_METHOD', '')
if logout_from_op:
logout_url = import_string(logout_from_op)
logout_url = import_string(logout_from_op)()

# Log out the Django user.
auth.logout(request)
Expand Down

0 comments on commit 5d46cf4

Please sign in to comment.