|
16 | 16 | import pkg_resources |
17 | 17 | from flask import current_app, render_template |
18 | 18 | from flask_babelex import Domain |
| 19 | +from flask_login import AnonymousUserMixin, LoginManager |
19 | 20 | from flask_login import UserMixin as BaseUserMixin |
20 | | -from flask_login import AnonymousUserMixin, LoginManager, current_user |
| 21 | +from flask_login import current_user |
21 | 22 | from flask_principal import Identity, Principal, RoleNeed, UserNeed, \ |
22 | 23 | identity_loaded |
23 | 24 | from itsdangerous import URLSafeTimedSerializer |
|
28 | 29 | from .forms import ChangePasswordForm, ConfirmRegisterForm, \ |
29 | 30 | ForgotPasswordForm, LoginForm, PasswordlessLoginForm, RegisterForm, \ |
30 | 31 | ResetPasswordForm, SendConfirmationForm |
| 32 | +from .utils import _ |
31 | 33 | from .utils import config_value as cv |
32 | | -from .utils import _, get_config, hash_data, localize_callback, string_types, \ |
33 | | - url_for_security, verify_hash, send_mail, verify_and_update_password |
| 34 | +from .utils import get_config, hash_data, localize_callback, send_mail, \ |
| 35 | + string_types, url_for_security, verify_and_update_password, verify_hash |
34 | 36 | from .views import create_blueprint |
35 | 37 |
|
36 | 38 | # Convenient references |
|
0 commit comments