Files @ 4cad3a52e0ed
Branch filter:

Location: kallithea/docs/readme.rst - annotation

4cad3a52e0ed 42 B text/prs.fallenstein.rst Show Source Show as Raw Download as Raw
Thomas De Schampheleire
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.
1
2
3
.. _readme:

.. include:: ./../README.rst