From 7f50c87b58e089b17204da63a48a8747a0f9dd44 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 8 Jan 2019 15:47:38 -0800 Subject: send user to login page if they need to auth to continue --- python/fatcat_web/__init__.py | 1 + 1 file changed, 1 insertion(+) (limited to 'python/fatcat_web') diff --git a/python/fatcat_web/__init__.py b/python/fatcat_web/__init__.py index 53947143..cd7af195 100644 --- a/python/fatcat_web/__init__.py +++ b/python/fatcat_web/__init__.py @@ -18,6 +18,7 @@ FlaskUUID(app) login_manager = LoginManager() login_manager.init_app(app) +login_manager.login_view = "/auth/login" oauth = OAuth(app) # Grabs sentry config from SENTRY_DSN environment variable -- cgit v1.2.3