Skip to content

Commit

Permalink
Merge pull request #46 from 4teamwork/master
Browse files Browse the repository at this point in the history
Fix session id generation.
  • Loading branch information
Denis Krienbühl committed Oct 28, 2013
2 parents 5f01b77 + 29b684b commit 4a3468d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion seantis/reservation/plone_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ def generate_session_id(context):

# logged in users get ids which are predictable for each plone site
namespace = uuid.uuid5(root_namespace, str(getSite().id))
return uuid.uuid5(namespace, str(membership.getId()))
return uuid.uuid5(namespace,
str(membership.getAuthenticatedMember().getId()))


def get_session(context, key):
Expand Down

0 comments on commit 4a3468d

Please sign in to comment.