gengo/decanter — pull request #72 by adcurrenday (2013-11-19 09:14:37+00:00)
Title: login_required decorator

Added a login_required decorator that checks if a user identifier is present in the current session, and redirects to a given URL if it is not present.

Also fixed the handling of default values of various session/cookie/redis parameters. Previously, although the code used defaults, it required specifying them again explicitly in the config file.

Added a unit test.