def user_update_own_password(request, origpassword, password):
    client = keystoneclient(request, admin=False)
    client.user_id = request.user.id
    if VERSIONS.active < 3:
        return client.users.update_own_password(origpassword, password)
    else:
        return client.users.update_password(origpassword, password)
dataset/ETHPy150Open openstack/horizon/openstack_dashboard/api/keystone.py/user_update_own_password/original