diff options
author | Jenkins <jenkins@review.openstack.org> | 2015-08-20 19:27:31 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2015-08-20 19:27:31 +0000 |
commit | 94e74489d1666efc1305905d9d0928685efdca13 (patch) | |
tree | 9bcd9f9e17e4c2fca5d1ab9d34db00942ef8a515 | |
parent | e30e7a8a4a5a140cc8d665046c60c19153156b65 (diff) | |
parent | aed28851b933a04dffcff70674f7afad84cb2d57 (diff) | |
download | django_openstack_auth-94e74489d1666efc1305905d9d0928685efdca13.tar.gz |
Merge "initialize the hasher for unscoped token"
-rw-r--r-- | openstack_auth/user.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/openstack_auth/user.py b/openstack_auth/user.py index bb83022..fc63d3f 100644 --- a/openstack_auth/user.py +++ b/openstack_auth/user.py @@ -91,6 +91,7 @@ class Token(object): hasher.update(self.id) self.id = hasher.hexdigest() # If the scoped_token is long, then unscoped_token must be too. + hasher = hashlib.new(algorithm) hasher.update(self.unscoped_token) self.unscoped_token = hasher.hexdigest() self.expires = auth_ref.expires |