Move redirect_to_signin helper to new util module

We'll expand this module in later commits.
This commit is contained in:
Ben Thorner
2021-06-14 11:09:42 +01:00
parent edb0b8214d
commit 3250f2b3ed
6 changed files with 20 additions and 24 deletions

View File

@@ -10,7 +10,8 @@ from app.main.views.two_factor import log_in_user
from app.models.user import User
from app.models.webauthn_credential import RegistrationError, WebAuthnCredential
from app.notify_client.user_api_client import user_api_client
from app.utils import is_less_than_days_ago, redirect_to_sign_in
from app.utils import is_less_than_days_ago
from app.utils.login import redirect_to_sign_in
from app.utils.user import user_is_platform_admin