diff options
Diffstat (limited to 'passlib/handlers/phpass.py')
-rw-r--r-- | passlib/handlers/phpass.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/passlib/handlers/phpass.py b/passlib/handlers/phpass.py index e364b51..0cafea1 100644 --- a/passlib/handlers/phpass.py +++ b/passlib/handlers/phpass.py @@ -51,6 +51,16 @@ class phpass(uh.HasManyIdents, uh.HasRounds, uh.HasSalt, uh.GenericHandler): phpBB3 uses ``H`` instead of ``P`` for it's identifier, this may be set to ``H`` in order to generate phpBB3 compatible hashes. it defaults to ``P``. + + :type relaxed: bool + :param relaxed: + By default, providing an invalid value for one of the other + keywords will result in a :exc:`ValueError`. If ``relaxed=True``, + and the error can be corrected, a :exc:`~passlib.exc.PasslibHashWarning` + will be issued instead. Correctable errors include ``rounds`` + that are too small or too large, and ``salt`` strings that are too long. + + .. versionadded:: 1.6 """ #========================================================= |