def check_password(self, password):
    "\n        Hash a given password and check it against the stored value\n        to determine it's validity.\n\n        :param password:\n        :return:\n        "
    if self.password:
        return bcrypt.check_password_hash(self.password, password)
Hash a given password and check it against the stored value
to determine it's validity.

:param password:
:return:
def check_password(self, password):
    "\n        Hash a given password and check it against the stored value\n        to determine it's validity.\n\n        :param password:\n        :return:\n        "
    if self.password:
        return bcrypt.check_password_hash(self.password, password)