

def verify_password(user_manager, password, hashed_password):
    ' Verify password with previously hashed password.\n        Returns True on matching password.\n        Returns False otherwise.'
    if (user_manager.password_hash == 'plaintext'):
        return (password == hashed_password)
    if (user_manager.password_hash_mode == 'Flask-Security'):
        password = generate_sha512_hmac(user_manager.password_salt, password)
    return user_manager.password_crypt_context.verify(user_manager, hashed_password)

dataset/ETHPy150Open lingthio/Flask-User/flask_user/passwords.py verify_password/VarMisuse@65/135 `password`->`user_manager`