Sha256: 43d6a32fd15e8165b2c217a4c6ee7812597df46335551665305323ec532807e7

Contents?: true

Size: 438 Bytes

Versions: 4

Compression:

Stored size: 438 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 StandardError => 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.1.12 examples/password_reset.rb
archivesspace-client-0.1.11 examples/password_reset.rb
archivesspace-client-0.1.10 examples/password_reset.rb
archivesspace-client-0.1.8 examples/password_reset.rb