portagenetwork / roadmap

Developed by the the Alliance in collaboration with University of Alberta, DMP Assistant a data management planning tool, forking the DMP Roadmap codebase
MIT License
6 stars 1 forks source link

Add Terms and Conditions For Invitation Form #684

Closed aaronskiba closed 5 months ago

aaronskiba commented 7 months ago

Fixes #665

Changes proposed in this PR:

  1. Add terms and conditions checkbox to the devise invitation form
    • This was done by copy/pasting the code from app/views/shared/_create_account_form.html.erb
    • In addition to the copy/paste, required: true was added. As a result, the invitation form cannot be submitted unless the checkbox is currently checked.
  2. Add accept_terms to devise_parameter_sanitizer.permit(). This enables the accept_terms value to be updated within the update method of Devise::InvitationsController