diff options
| author | Eli Collins <elic@assurancetechnologies.com> | 2011-02-07 16:04:07 -0500 |
|---|---|---|
| committer | Eli Collins <elic@assurancetechnologies.com> | 2011-02-07 16:04:07 -0500 |
| commit | 5a063d2a05dec5de5cf4e449d2991416a4786e68 (patch) | |
| tree | ecbde98fee79221b31fa9aa61b3bcaea737e9b06 /passlib/unix.py | |
| parent | 05cb721a6acad2f54660d9da5c7c802a8d713021 (diff) | |
| download | passlib-5a063d2a05dec5de5cf4e449d2991416a4786e68.tar.gz | |
sql work
========
* combined passlib.mysql, passlib.postgres -> passlib.sqldb
(contents were too small to be worth multiple modules)
* added helper to read postgres plaintext passwords
* added documentation for passlib.sqldb
Diffstat (limited to 'passlib/unix.py')
| -rw-r--r-- | passlib/unix.py | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/passlib/unix.py b/passlib/unix.py index 8d0102f..8344a57 100644 --- a/passlib/unix.py +++ b/passlib/unix.py @@ -1,7 +1,22 @@ """passlib.unix """ +#========================================================= +#imports +#========================================================= +#pkg from passlib.base import CryptContext, register_crypt_handler from passlib.utils.handlers import CryptHandler +#local +__all__ = [ + "default_context", + "linux_context", + "bsd_context", + "openbsd_context", + "netbsd_context", + "freebsd_context", + + "UnixDisabledHandler", +] #========================================================= #helpers #========================================================= @@ -31,7 +46,7 @@ class UnixDisabledHandler(CryptHandler): return not hash or hash == "*" or hash.startswith("!") @classmethod - def verify(cls, hash): + def verify(cls, secret, hash): return False register_crypt_handler(UnixDisabledHandler) |
