app/routines/openstax/accounts/dev/create_account.rb in openstax_accounts-7.9.0 vs app/routines/openstax/accounts/dev/create_account.rb in openstax_accounts-7.10.0
- old
+ new
@@ -21,11 +21,12 @@
account = OpenStax::Accounts::Account.new
account.openstax_uid = -SecureRandom.hex(4).to_i(16)/2
account.access_token = SecureRandom.hex.to_s
account.username = username
- account.uuid = SecureRandom.uuid
account.role = inputs[:role] || :unknown_role
+ account.uuid = SecureRandom.uuid
+ account.support_identifier = "cs_#{SecureRandom.hex(4)}"
account.save
transfer_errors_from(account, {type: :verbatim}, true)