Skip to content

Commit

Permalink
changed to md5 in csfr
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Aug 31, 2016
1 parent ca6d9f0 commit a5cc71c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/appier_extras/parts/csfr/part.py
Expand Up @@ -37,6 +37,8 @@
__license__ = "Apache License, Version 2.0"
""" The license for the module """

import hashlib

import appier

class CSFRPart(appier.Part):
Expand Down Expand Up @@ -67,7 +69,7 @@ def _gen_token(self, scope = None):
csfr_m = self.session.get("csfr", {})
tokens, tokens_l = csfr_m.get(scope, ({}, []))
self._force_limit(tokens, tokens_l)
token = appier.gen_token()
token = appier.gen_token(hash = hashlib.md5)
tokens[token] = True
tokens_l.append(token)
csfr_m[scope] = (tokens, tokens_l)
Expand Down

0 comments on commit a5cc71c

Please sign in to comment.