Skip to content

Commit

Permalink
fixes key
Browse files Browse the repository at this point in the history
  • Loading branch information
pcrespov committed Oct 10, 2024
1 parent bb81141 commit a153ff1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

from ..products.api import get_product_name
from ..security.api import (
PERMISSION_PRODUCT_LOGIN,
PERMISSION_PRODUCT_LOGIN_KEY,
AuthContextDict,
check_user_authorized,
check_user_permission,
Expand Down Expand Up @@ -58,7 +58,7 @@ async def _wrapper(request: web.Request):

await check_user_permission(
request,
PERMISSION_PRODUCT_LOGIN,
PERMISSION_PRODUCT_LOGIN_KEY,
context=AuthContextDict(
product_name=get_product_name(request),
authorized_uid=user_id,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,6 @@ def check_password(password: str, password_hash: str) -> bool:
"forget_identity",
"get_access_model",
"is_anonymous",
"PERMISSION_PRODUCT_LOGIN",
"PERMISSION_PRODUCT_LOGIN_KEY",
"remember_identity",
)

0 comments on commit a153ff1

Please sign in to comment.