def _auth_base(self, password_text):
        """
        已获取了用户对象，进行密码校验
        :param password_text:
        :return:
        """
        dk = hashlib.pbkdf2_hmac(
            config.PASSWORD_HASH_FUNC_NAME,
            password_text.encode('utf-8'),
            get_bytes_from_blob(self.salt),
            config.PASSWORD_HASH_ITERATIONS
        )

        if self.password == dk:
            return self
def _auth_base(self, password_text):
        """
        已获取了用户对象，进行密码校验
        :param password_text:
        :return:
        """
        dk = hashlib.pbkdf2_hmac(
            config.PASSWORD_HASH_FUNC_NAME,
            password_text.encode('utf-8'),
            get_bytes_from_blob(self.salt),
            config.PASSWORD_HASH_ITERATIONS
        )

        if self.password == dk:
            return self
def _auth_base ( self , password_text ) : dk = hashlib . pbkdf2_hmac ( config . PASSWORD_HASH_FUNC_NAME , password_text . encode ( 'utf-8' ) , get_bytes_from_blob ( self . salt ) , config . PASSWORD_HASH_ITERATIONS ) if self . password == dk : return self
已获取了用户对象，进行密码校验
        :param password_text:
        :return:
已获取了用户对象，进行密码校验 : param password_text : : return :