diff options
| author | Guillaume Horel <guillaume.horel@gmail.com> | 2011-06-01 01:22:16 -0400 |
|---|---|---|
| committer | Guillaume Horel <guillaume.horel@gmail.com> | 2011-06-01 01:22:16 -0400 |
| commit | d4ecf728109619d34c1781a069793a37c8d9b8e7 (patch) | |
| tree | 8abd81609001b3305d20d4be2c6b27cf2742394b /server/user.py | |
| parent | cdc4ec8d31b826222d970fb37e3e101cd4f86a77 (diff) | |
| download | alias-d4ecf728109619d34c1781a069793a37c8d9b8e7.tar.gz | |
Fixes to handle alias queries on the server side
should work with code fixed by zaran,
just need to build an user directory with
the right objects.
Diffstat (limited to 'server/user.py')
| -rw-r--r-- | server/user.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/user.py b/server/user.py index 7f01149..2909c16 100644 --- a/server/user.py +++ b/server/user.py @@ -11,7 +11,8 @@ class User: def __init__(self, jid): self.jid = jid - self.hash = hashlib.sha1(jid).hexdigest() + self.hash = hashlib.sha256(jid).hexdigest() + #self.hash = hashlib.md5(jid).hexdigest() def register(self, registration): ObjectWriter('pubkey', self.jid, split_name = False).write(self.jid, registration['pubkey']) |
