Skip to content

Commit

Permalink
pylint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pcrespov committed Dec 8, 2022
1 parent 55db711 commit ee69f86
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,7 @@
from ._models import InputSchema
from ._security import login_granted_response
from .decorators import RQT_USERID_KEY, login_required
from .settings import (
LoginOptions,
LoginSettings,
get_plugin_options,
get_plugin_settings,
)
from .settings import LoginSettings, get_plugin_settings
from .storage import AsyncpgStorage, get_plugin_storage
from .utils import (
ACTIVE,
Expand Down Expand Up @@ -65,7 +60,6 @@ class LoginBody(InputSchema):
async def login(request: web.Request):
settings: LoginSettings = get_plugin_settings(request.app)
db: AsyncpgStorage = get_plugin_storage(request.app)
cfg: LoginOptions = get_plugin_options(request.app)
product: Product = get_current_product(request)

login_ = await parse_request_body_as(LoginBody, request)
Expand Down Expand Up @@ -157,7 +151,6 @@ async def login_2fa(request: web.Request):

settings: LoginSettings = get_plugin_settings(request.app)
db: AsyncpgStorage = get_plugin_storage(request.app)
cfg: LoginOptions = get_plugin_options(request.app)

if not settings.LOGIN_2FA_REQUIRED:
raise web.HTTPServiceUnavailable(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ class PhoneConfirmationBody(InputSchema):
async def phone_confirmation(request: web.Request):
settings: LoginSettings = get_plugin_settings(request.app)
db: AsyncpgStorage = get_plugin_storage(request.app)
cfg: LoginOptions = get_plugin_options(request.app)

if not settings.LOGIN_2FA_REQUIRED:
raise web.HTTPServiceUnavailable(
Expand Down

0 comments on commit ee69f86

Please sign in to comment.