mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-02-06 06:30:51 +03:00
Refactor passlib password hasing example
This commit is contained in:
parent
cf44e5815d
commit
c20202a23d
|
@ -23,7 +23,7 @@ class Container(containers.DeclarativeContainer):
|
||||||
"""Inversion of control container."""
|
"""Inversion of control container."""
|
||||||
|
|
||||||
password_hasher = providers.Callable(
|
password_hasher = providers.Callable(
|
||||||
passlib.hash.sha256_crypt.encrypt,
|
passlib.hash.sha256_crypt.hash,
|
||||||
salt_size=16,
|
salt_size=16,
|
||||||
rounds=10000)
|
rounds=10000)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user