newauth.decorators

newauth.decorators.login_required(backend_list=None, login_url=None, redirect_field_name='next')

Decorator for views that checks that the user is logged in, redirecting to the log-in page if necessary.