views: fix bug when calling can_add_token()
This commit is contained in:
parent
060a98b58e
commit
975bfd89f1
|
@ -10,7 +10,7 @@ from . import app_settings, utils, adapter as _adapter
|
|||
|
||||
def add_ltpa_token_to_response(request, response):
|
||||
adapter = _adapter.get_adapter()
|
||||
if not adapter.can_add_token():
|
||||
if not adapter.can_add_token(request):
|
||||
return
|
||||
if app_settings.TOKEN_SECRET is None:
|
||||
raise ImproperlyConfigured('missing TOKEN_SECRET')
|
||||
|
|
Reference in New Issue