def reset(self, dim):
        if self.dim != dim:
            self.dim = dim
            self.normals = self.rand.randn(self.projection_count, dim)
Ensure a user is authenticated, and optionally check their password.
dataset/ETHPy150Open pixelogik/NearPy/nearpy/hashes/randomdiscretizedprojections.py/RandomDiscretizedProjections.reset--crossover with--dataset/ETHPy150Open nickjj/build-a-saas-app-with-flask/catwatch/blueprints/user/models.py/User.authenticated