Switch to django's built-in login_required decorator.
Review Request #4932 — Created Nov. 10, 2013 and submitted
Switch to django's built-in
There's no longer any reason for us to have our own
and it's just more code for us to maintain. The upstream django one provides
everything we need (plus some nice checking that we didn't have).
This is a little bit ugly because of the name of the '
next_page' field on the
login page, but that will be a trivial cleanup once this goes in.
Checked that all the views which explicitly used
login_requiredand a few of
the views that used
check_login_requiredcorrectly redirected to the login page
next_pageset properly. Once there, checked that logging in redirected to
the correct page.