Hide the MSP block when the nomsp parameter is present in the URL (old behaviour broken)

This commit is contained in:
Benjamin Dauvergne 2014-12-01 14:30:23 +01:00
parent 676787f45f
commit 25d483e551
1 changed files with 2 additions and 0 deletions

View File

@ -16,6 +16,8 @@ class MspFrontend(object):
return 'msp'
def login(self, request, *args, **kwargs):
if 'nomsp' in request.GET:
return
context_instance = kwargs.pop('context_instance', None)
return render(request, 'authentic2_auth_msp/login.html',
context_instance=context_instance)