[Repoze-checkins] r939 - repoze.who/trunk/repoze/who/plugins

Tres Seaver tseaver at palladion.com
Sat May 3 16:37:31 EDT 2008


Author: Tres Seaver <tseaver at palladion.com>
Date: Sat May  3 16:37:31 2008
New Revision: 939

Log:
Add a plaintext password checker.

Modified:
   repoze.who/trunk/repoze/who/plugins/htpasswd.py

Modified: repoze.who/trunk/repoze/who/plugins/htpasswd.py
==============================================================================
--- repoze.who/trunk/repoze/who/plugins/htpasswd.py	(original)
+++ repoze.who/trunk/repoze/who/plugins/htpasswd.py	Sat May  3 16:37:31 2008
@@ -47,6 +47,9 @@
     salt = hashed[:2]
     return hashed == crypt(password, salt)
 
+def plain_check(password, hashed):
+    return hashed == password
+
 def make_plugin(filename=None, check_fn=None):
     if filename is None:
         raise ValueError('filename must be specified')


More information about the Repoze-checkins mailing list