app/routines/openstax/accounts/dev/create_account.rb in openstax_accounts-7.5.0 vs app/routines/openstax/accounts/dev/create_account.rb in openstax_accounts-7.6.0
- old
+ new
@@ -21,9 +21,11 @@
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.save
transfer_errors_from(account, {type: :verbatim}, true)