[server] don't convert user.login to bytes to generate sessionid
authorJulien Cristau <julien.cristau@logilab.fr>
Wed, 30 Sep 2015 16:50:06 +0200
changeset 10737 c5b048ae4df5
parent 10736 8d49849ec2a6
child 10738 675e47b1b875
[server] don't convert user.login to bytes to generate sessionid
server/session.py
--- a/server/session.py	Wed Sep 30 16:14:29 2015 +0200
+++ b/server/session.py	Wed Sep 30 16:50:06 2015 +0200
@@ -1006,7 +1006,7 @@
     """
 
     def __init__(self, user, repo, cnxprops=None, _id=None):
-        self.sessionid = _id or make_uid(unormalize(user.login).encode('UTF8'))
+        self.sessionid = _id or make_uid(unormalize(user.login))
         self.user = user # XXX repoapi: deprecated and store only a login.
         self.repo = repo
         self.vreg = repo.vreg