예제 #1
0
    def check_password(self, password):
        """
        Hash a given password and check it against the stored value
        to determine it's validity.

        :param password:
        :return:
        """
        return bcrypt.check_password_hash(self.password, password)
예제 #2
0
파일: models.py 프로젝트: kinzer1/lemur
    def check_password(self, password):
        """
        Hash a given password and check it against the stored value
        to determine it's validity.

        :param password:
        :return:
        """
        return bcrypt.check_password_hash(self.password, password)