diff --git a/app/controllers/registrations_controller.rb b/app/controllers/registrations_controller.rb index b7b3d51..1a04efb 100644 --- a/app/controllers/registrations_controller.rb +++ b/app/controllers/registrations_controller.rb @@ -124,7 +124,7 @@ end def sign_up_params - params.require(:user).permit(:email, :password, :password_confirmation, + params.require(:user).permit(:email, :password, :password_confirmation, :firstname, :surname, :accept_terms, :org_id, :other_organisation) end diff --git a/test/test_helper.rb b/test/test_helper.rb index ff0125b..91a71e7 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -44,6 +44,9 @@ perms: Perm.where.not(name: ['admin', 'add_organisations', 'change_org_affiliation', 'grant_api_to_orgs']), org: org, accept_terms: true, confirmed_at: Time.zone.now) end + +puts "USER: #{usr.email}" + usr end