Skip to content

Commit 6d2fca3

Browse files
Fix/debug log (#85)
* Remove debug logs * Version bump * Add badges --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent f9118a6 commit 6d2fca3

4 files changed

Lines changed: 5 additions & 9 deletions

File tree

badges/date.log

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Tue May 12 15:34:30 UTC 2026
1+
Mon May 18 07:59:40 UTC 2026

badges/pylint.svg

Lines changed: 2 additions & 2 deletions
Loading

ecodev_core/authentication.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,7 @@ def attempt_to_log(user: str,
152152
if not (db_user := session.exec(selector).first()):
153153
log.warning('unauthorized user')
154154
login_failed = True
155-
log.critical(f'db_user: {db_user}')
156-
log.critical(f'password: {password}')
157-
log.critical(f'db_user.password: {repr(db_user.password)}')
155+
158156
if not _check_password(password, db_user.password if db_user and db_user.password else INVALID_HASH):
159157
log.warning('invalid user')
160158
login_failed = True
@@ -324,6 +322,4 @@ def _check_password(plain_password: Optional[str], hashed_password: str) -> bool
324322
"""
325323
Check the passed password (compare it to the passed encoded one).
326324
"""
327-
log.info(f'plain_password: {plain_password}')
328-
log.info(f'hashed_password: {hashed_password}')
329325
return CONTEXT.verify(plain_password, hashed_password)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "ecodev-core"
3-
version = "0.0.84"
3+
version = "0.0.85"
44
description = "Low level sqlmodel/fastapi/pydantic building blocks"
55
authors = ["Thomas Epelbaum <tomepel@gmail.com>",
66
"Olivier Gabriel <olivier.gabriel.geom@gmail.com>",

0 commit comments

Comments
 (0)