

@auth.verify_password
def verify_password(username_or_token, password):
    if current_app.config['USE_TOKEN_AUTH']:
        g.user = User.verify_auth_token(password)
        return (g.user is not None)
    else:
        g.user = User.query.filter_by(username=username_or_token).first()
        return ((g.user is not None) and g.user.verify_password(password))

dataset/ETHPy150Open miguelgrinberg/api-pycon2014/api/auth.py verify_password/VarMisuse@35/51 `username_or_token`->`password`