ecodev-core 0.0.10__py3-none-any.whl → 0.0.11__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of ecodev-core might be problematic. Click here for more details.
- ecodev_core/authentication.py +1 -1
- {ecodev_core-0.0.10.dist-info → ecodev_core-0.0.11.dist-info}/METADATA +1 -1
- {ecodev_core-0.0.10.dist-info → ecodev_core-0.0.11.dist-info}/RECORD +5 -5
- {ecodev_core-0.0.10.dist-info → ecodev_core-0.0.11.dist-info}/LICENSE.md +0 -0
- {ecodev_core-0.0.10.dist-info → ecodev_core-0.0.11.dist-info}/WHEEL +0 -0
ecodev_core/authentication.py
CHANGED
|
@@ -226,7 +226,7 @@ def _verify_access_token(token: str, tfa_value: Optional[str] = None) -> TokenDa
|
|
|
226
226
|
"""
|
|
227
227
|
try:
|
|
228
228
|
payload = jwt.decode(token, AUTH.secret_key, algorithms=[AUTH.algorithm])
|
|
229
|
-
if
|
|
229
|
+
if payload.get('tfa') and not _check_password(tfa_value, payload.get('tfa')):
|
|
230
230
|
raise HTTPException(status_code=status.HTTP_401_UNAUTHORIZED, detail=INVALID_TFA,
|
|
231
231
|
headers={'WWW-Authenticate': 'Bearer'})
|
|
232
232
|
if (user_id := payload.get('user_id')) is None:
|
|
@@ -3,7 +3,7 @@ ecodev_core/app_activity.py,sha256=_rU5uPfttHxXX5IaCuTA7K9We5w2qluJ3Xpf6i12HhY,3
|
|
|
3
3
|
ecodev_core/app_rights.py,sha256=RZPdDtydFqc_nFj96huKAc56BS0qS6ScKv4Kghqd6lc,726
|
|
4
4
|
ecodev_core/app_user.py,sha256=qXvu0GOm2fAY_KxjkPEUIw7Rb9uxm2kvyFvcTTBQvEg,2949
|
|
5
5
|
ecodev_core/auth_configuration.py,sha256=ZjEB-N5HTo2jaEljwrh6q64Lh5qZ1NuKk8bbpIEcdYc,433
|
|
6
|
-
ecodev_core/authentication.py,sha256=
|
|
6
|
+
ecodev_core/authentication.py,sha256=CYOD-UTH0wjeEvCeD7nT2LLi-ELPE8ftPQwEPkJxfnA,9106
|
|
7
7
|
ecodev_core/backup.py,sha256=9YZ79LkbLMSSoBJFmTr8u9_OPBbDmwasrmCJpqb7lkg,3055
|
|
8
8
|
ecodev_core/check_dependencies.py,sha256=aFn8GI4eBbuJT8RxsfhSSnlpNYYj_LPOH-tZF0EqfKQ,6917
|
|
9
9
|
ecodev_core/custom_equal.py,sha256=2gRn0qpyJ8-Kw9GQSueu0nLngLrRrwyMPlP6zqPac0U,899
|
|
@@ -19,7 +19,7 @@ ecodev_core/permissions.py,sha256=dMaRQyjrF8Y51gkbkFvFsGVdzQGLZtA72IQ7REYamxg,32
|
|
|
19
19
|
ecodev_core/pydantic_utils.py,sha256=e3GH50JmcpTmd2UgrB94QSwWOlOCW3WIlVdyX9C4T-U,741
|
|
20
20
|
ecodev_core/read_write.py,sha256=auJ5bBJTVGkLRkiP_vZxVCX64B0Y-9qpsaDhovHmbas,996
|
|
21
21
|
ecodev_core/safe_utils.py,sha256=uTHzLnKBoV_MiFsI65X-WYmgzLpIBH5Cio80KSLd6wg,5933
|
|
22
|
-
ecodev_core-0.0.
|
|
23
|
-
ecodev_core-0.0.
|
|
24
|
-
ecodev_core-0.0.
|
|
25
|
-
ecodev_core-0.0.
|
|
22
|
+
ecodev_core-0.0.11.dist-info/LICENSE.md,sha256=jebQDe1ib9LAODuNvcSoo2CoqS6P0_q8--mMTICh_kI,1074
|
|
23
|
+
ecodev_core-0.0.11.dist-info/METADATA,sha256=m1eg5et7eO_5gEoEIx5Kl2eK4z9k2faiCubSvvUtofo,3291
|
|
24
|
+
ecodev_core-0.0.11.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
25
|
+
ecodev_core-0.0.11.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|