|
20 | 20 | from servicelib.mimetype_constants import MIMETYPE_APPLICATION_JSON |
21 | 21 | from simcore_postgres_database.models.users import UserStatus |
22 | 22 |
|
23 | | -from ..._meta import API_VTAG |
24 | | -from ...groups.api import auto_add_user_to_groups, auto_add_user_to_product_group |
25 | | -from ...invitations.api import is_service_invitation_code |
26 | | -from ...products import products_web |
27 | | -from ...products.models import Product |
28 | | -from ...session.access_policies import ( |
| 23 | +from ...._meta import API_VTAG |
| 24 | +from ....groups.api import auto_add_user_to_groups, auto_add_user_to_product_group |
| 25 | +from ....invitations.api import is_service_invitation_code |
| 26 | +from ....products import products_web |
| 27 | +from ....products.models import Product |
| 28 | +from ....session.access_policies import ( |
29 | 29 | on_success_grant_session_access_to, |
30 | 30 | session_access_required, |
31 | 31 | ) |
32 | | -from ...utils import MINUTE |
33 | | -from ...utils_aiohttp import NextPage, envelope_json_response |
34 | | -from ...utils_rate_limiting import global_rate_limit_route |
35 | | -from .. import _auth_service, _confirmation_service, _security_service, _twofa_service |
36 | | -from .._constants import ( |
| 32 | +from ....utils import MINUTE |
| 33 | +from ....utils_aiohttp import NextPage, envelope_json_response |
| 34 | +from ....utils_rate_limiting import global_rate_limit_route |
| 35 | +from ... import _auth_service, _confirmation_service, _security_service, _twofa_service |
| 36 | +from ..._constants import ( |
37 | 37 | CODE_2FA_SMS_CODE_REQUIRED, |
38 | 38 | MAX_2FA_CODE_RESEND, |
39 | 39 | MAX_2FA_CODE_TRIALS, |
|
42 | 42 | MSG_UNAUTHORIZED_REGISTER_PHONE, |
43 | 43 | MSG_WEAK_PASSWORD, |
44 | 44 | ) |
45 | | -from .._emails_service import get_template_path, send_email_from_template |
46 | | -from .._invitations_service import ( |
| 45 | +from ..._emails_service import get_template_path, send_email_from_template |
| 46 | +from ..._invitations_service import ( |
47 | 47 | ConfirmedInvitationData, |
48 | 48 | check_and_consume_invitation, |
49 | 49 | check_other_registrations, |
50 | 50 | extract_email_from_invitation, |
51 | 51 | ) |
52 | | -from .._login_repository_legacy import ( |
| 52 | +from ..._login_repository_legacy import ( |
53 | 53 | AsyncpgStorage, |
54 | 54 | ConfirmationTokenDict, |
55 | 55 | get_plugin_storage, |
56 | 56 | ) |
57 | | -from .._login_service import ( |
| 57 | +from ..._login_service import ( |
58 | 58 | envelope_response, |
59 | 59 | flash_response, |
60 | 60 | get_user_name_from_email, |
61 | 61 | notify_user_confirmation, |
62 | 62 | ) |
63 | | -from .._models import InputSchema, check_confirm_password_match |
64 | | -from ..settings import ( |
| 63 | +from ..._models import InputSchema, check_confirm_password_match |
| 64 | +from ...settings import ( |
65 | 65 | LoginOptions, |
66 | 66 | LoginSettingsForProduct, |
67 | 67 | get_plugin_options, |
|
0 commit comments