fix: resolver problema de resolucion de modulo jwt y corregir lints de JobsView y service

This commit is contained in:
Carlos Tello
2026-08-15 01:05:11 -03:00
parent 3b74a7ba65
commit 85b6bb4100
4 changed files with 7 additions and 3 deletions
+4 -1
View File
@@ -15,7 +15,10 @@ def verify_password(plain_password: str, hashed_password: str) -> bool:
"""Verifies a plain password against a bcrypt hash."""
try:
return bcrypt.checkpw(plain_password.encode("utf-8"), hashed_password.encode("utf-8"))
except Exception:
except Exception as e:
print(f">> verify_password Exception: {e}")
import traceback
traceback.print_exc()
return False
def create_access_token(subject: Any, role: str = "ADMIN", expires_delta: Optional[timedelta] = None) -> str: