Example #1
0
 def _check_userline(self, user, password, suffix):
     return suffix == htpasswd(password, suffix)
Example #2
0
 def adduser(self, user):
     """Add a user to the environment.  Password is the username."""
     f = open(self.htpasswd, 'a')
     f.write("%s:%s\n" % (user, htpasswd(user)))
     f.close()
Example #3
0
 def _check_userline(self, user, password, suffix):
     return suffix == htpasswd(password, suffix)
Example #4
0
 def check(password, hashed):
     """check callback for AccountManager's htpasswd"""
     return hashed == htpasswd(password, hashed)
Example #5
0
 def adduser(self, user):
     """Add a user to the environment.  Password is the username."""
     f = open(self.htpasswd, 'a')
     f.write("%s:%s\n" % (user, htpasswd(user)))
     f.close()
Example #6
0
 def check(password, hashed):
     """check callback for AccountManager's htpasswd"""
     return hashed == htpasswd(password, hashed)