code: def verify_password(self, password, password_hash):
          
  
          # Print deprecation warning if called with (password, user) instead of (password, user.password)
          if isinstance(password_hash, self.user_manager.db_manager.UserClass):
              print(
                  'Deprecation warning: verify_password(password, user) has been changed'\
                  ' to: verify_password(password, password_hash). The user param will be deprecated.'\
                  ' Please change your call with verify_password(password, user) into'\
                  ' a call with verify_password(password, user.password)'
                  ' as soon as possible.')
              password_hash = password_hash.password   # effectively user.password
  
          # Use passlib's CryptContext to verify a password
          return self.password_crypt_context.verify(password, password_hash)
docs: Verify plaintext ``password`` against ``hashed password``.
  
          Args:
              password(str): Plaintext password that the user types in.
              password_hash(str): Password hash generated by a previous call to ``hash_password()``.
          Returns:
              | True when ``password`` matches ``password_hash``.
              | False otherwise.
          Example:
  
              ::
  
                  if verify_password('mypassword', user.password):
                      login_user(user)