From ada415a369e58eac93de4dd8c29f3e4d949ce0e3 Mon Sep 17 00:00:00 2001 From: Fluffy-Bean Date: Fri, 14 Apr 2023 20:12:08 +0000 Subject: [PATCH] Fix login manager login view --- .gitignore | 4 ++-- onlylegs/__init__.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index c411669..1d90a84 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ -gallery/static/.webassets-cache -gallery/static/gen +onlylegs/static/.webassets-cache +onlylegs/static/gen instance/ migrations/ diff --git a/onlylegs/__init__.py b/onlylegs/__init__.py index 66c34d0..741a7e7 100644 --- a/onlylegs/__init__.py +++ b/onlylegs/__init__.py @@ -18,9 +18,9 @@ from werkzeug.security import generate_password_hash from onlylegs.extensions import db, migrate, login_manager, assets, compress, cache from onlylegs.views import index, image, group, settings, profile -from onlylegs.models import User from onlylegs import api from onlylegs import auth +from onlylegs.models import User INSTACE_DIR = os.path.join(platformdirs.user_config_dir("onlylegs"), "instance") @@ -78,7 +78,7 @@ def create_app(): # pylint: disable=R0914 # can also set session_protection to "strong" # this would protect against session hijacking login_manager.init_app(app) - login_manager.login_view = "gallery.index" + login_manager.login_view = "onlylegs.index" @login_manager.user_loader def load_user(user_id):