Ticket #13125: login_required_active.diff
File login_required_active.diff, 496 bytes (added by , 15 years ago) |
---|
-
django/contrib/auth/decorators.py
35 35 to the log-in page if necessary. 36 36 """ 37 37 actual_decorator = user_passes_test( 38 lambda u: u.is_authenticated() ,38 lambda u: u.is_authenticated() and u.is_active, 39 39 redirect_field_name=redirect_field_name 40 40 ) 41 41 if function: