Sha256: 50072bb4165b0235f7a3c5dbf27c9d401e65e44f0aa1ab65d5a0cecc649c1034

Contents?: true

Size: 424 Bytes

Versions: 4

Compression:

Stored size: 424 Bytes

Contents

# frozen_string_literal: true

$LOAD_PATH.unshift File.expand_path("../lib", __dir__)
require "awesome_print"
require "archivesspace/client"

username = "admin"
password = "admin"

# default client connection: localhost:8089, admin, admin
client = ArchivesSpace::Client.new.login
begin
  puts client.password_reset(username, password).parsed
rescue => e
  puts "Failed to update password for #{username},\n#{e.message}"
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
archivesspace-client-0.4.1 examples/password_reset.rb
archivesspace-client-0.4.0 examples/password_reset.rb
archivesspace-client-0.3.0 examples/password_reset.rb
archivesspace-client-0.2.0 examples/password_reset.rb