Commit 2a899ecb authored by Andreas Jung's avatar Andreas Jung

using ZEO.hash

parent b2b6899c
...@@ -113,7 +113,7 @@ class Database: ...@@ -113,7 +113,7 @@ class Database:
return self._users[username] return self._users[username]
def hash(self, s): def hash(self, s):
return sha1.new(s).hexdigest() return sha1(s).hexdigest()
def add_user(self, username, password): def add_user(self, username, password):
if self._users.has_key(username): if self._users.has_key(username):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment