Skip to content

Commit

Permalink
Test params assignment and redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
ekumachidi committed Mar 10, 2024
1 parent 34010a2 commit dc4eb19
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion app/controllers/schools/users_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def show
private

def user_params
params.require(:user_invite).permit(:email, :firstname, :lastname, :organisation_id)
params.require(:schools_dfe_sign_in_api_user_invite).permit(:email, :firstname, :lastname, :organisation_id)
end
end
end
6 changes: 0 additions & 6 deletions app/services/schools/dfe_sign_in_api/user_invite.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@ def invite_user
@response ||= response
end

def full_name
return nil unless first_name && last_name

[firstname, lastname].map(&:presence).join(' ')
end

private

def response
Expand Down

0 comments on commit dc4eb19

Please sign in to comment.