

def clear_old_login(strategy, uid, user=None, *args, **kwargs):
    provider = strategy.backend.name
    social = strategy.storage.user.get_social_auth(provider, uid)
    if (user and strategy and (user == social.user)):
        if user.has_usable_password():
            user.set_unusable_password()

dataset/ETHPy150Open pebble/cloudpebble/auth/pebble.py clear_old_login/VarMisuse@49/56 `social`->`strategy`