fix: resolver problema de resolucion de modulo jwt y corregir lints de JobsView y service
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user