Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ repos:
hooks:
- id: ruff
- repo: https://github.com/PyCQA/bandit
rev: 1.7.5
rev: 1.7.10
hooks:
- id: bandit
exclude: tests/.*$
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ passlib[bcrypt]==1.7.4
pydantic>=2.0.0,<3.0.0
pyjwt[crypto]==2.10.1
python-dotenv==1.0.0
python-multipart==0.0.19
python-multipart==0.0.22
sqlalchemy==2.0.20
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def get_version(version_file: str) -> str:
"passlib[bcrypt] ==1.7.4",
"email-validator >=1.1.0,<2.1",
"pyjwt[crypto] ==2.10.1",
"python-multipart ==0.0.19",
"python-multipart ==0.0.22",
"makefun >=1.11.2,<2.0.0",
"pydantic>=2.0.0,<3.0.0",
"python-dotenv",
Expand Down
2 changes: 1 addition & 1 deletion src/filuta_fastapi_users/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Ready-to-use and customizable users management for FastAPI."""

__version__ = "12.1.1+9"
__version__ = "12.1.1+10"

from filuta_fastapi_users import models, schemas # noqa: F401
from filuta_fastapi_users.exceptions import InvalidID, InvalidPasswordException
Expand Down
4 changes: 2 additions & 2 deletions src/filuta_fastapi_users/password.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import secrets
from typing import Protocol

from passlib import pwd
from passlib.context import CryptContext


Expand Down Expand Up @@ -29,4 +29,4 @@ def hash(self, password: str) -> str:
return self.context.hash(password)

def generate(self) -> str:
return pwd.genword()
return secrets.token_urlsafe(32)
2 changes: 1 addition & 1 deletion tests/test_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def test_import() -> None:


def test_version() -> None:
assert __version__ == "12.1.1+9"
assert __version__ == "12.1.1+10"


def test_global_fixture(dummy_fixture: int) -> None:
Expand Down
Loading