Files
@ 4cad3a52e0ed
Branch filter:
Location: kallithea/init.d/celeryd-upstart.conf
4cad3a52e0ed
904 B
text/plain
auth: return early in LoginRequired on invalid IP
Simplify the code of the LoginRequired decorator by returning early when an
unacceptable condition is met.
Note: the 'return' of redirect_to_login() is not strictly needed since we
should not return from that function (redirection occurs). Adding it,
however, is a security measure in case redirect_to_login does not do what it
should do.
Simplify the code of the LoginRequired decorator by returning early when an
unacceptable condition is met.
Note: the 'return' of redirect_to_login() is not strictly needed since we
should not return from that function (redirection occurs). Adding it,
however, is a security measure in case redirect_to_login does not do what it
should do.