Commit 3017d952 authored by Stefano Alberto Russo's avatar Stefano Alberto Russo
Browse files

Merge branch 'develop' of https://www.ict.inaf.it/gitlab/exact/Rosetta into develop

parents cb6ff090 fdb4e7e0
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -47,10 +47,9 @@ def login_view(request):
        response.delete_cookie('post_login_redirect')
        return response
    else:
        # If local auth disabled, just render login page
        # (will be rendered an open id connect url only)
        # If local auth disabled, just redirect to OIDC
        if settings.DISABLE_LOCAL_AUTH:
            return render(request, 'login.html', {'data': data})
            return HttpResponseRedirect('/oidc/authenticate/')

    # If unauthenticated user tries to log in
    if request.method == 'POST':