Commit 036c6ba4 authored by Andreas Jung's avatar Andreas Jung

using ZEO.hash

parent 6a8febd4
...@@ -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