CYBEX-P / tahoe

A Cyberthreat Language (CTL) to replace STIX
Other
0 stars 1 forks source link

find_user does not work #35

Closed nachobacanful closed 4 years ago

nachobacanful commented 4 years ago

https://github.com/CYBEX-P/tahoe/blob/258db1543c76e8f0bceccdf47d6cf00496fdbe6b/tahoe/identity/backend.py#L59 this line converts identity_coll to identity_coll.backend, therefore never finding a users, therefore it always returns None

Solution

 return self.find_one({"_hash": thisuser._hash}, p)