pkp / pkp-lib

The library used by PKP's applications OJS, OMP and OPS, open source software for scholarly publishing.

Home Page:https://pkp.sfu.ca

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Invitations: API Support (Update Invitation and Add Invitation) + Change Profile Email Invitation

defstat opened this issue · comments

Describe the feature
There is a need to add certain features to the Invitations toolset.

  1. API Support
  • Update Invitation Payload
  • Accept Invitation
  • Decline Invitation
  • Dispatch invitation (Access rights should be considered)
  1. A new invitation for Change user Profile Email.
  • Ability to request an email change in the user profile page
  • A new mailable that will be send to the requested email, and will contain the "accept invitation url"
  • Message on the user profile page that there is already an email change request. Something like:
image
  • Disable the ability to request another email change if one is pending. Something like:
image
  • Ability to cancel the change request from within the profile page. Something like:
image

PRs

OJS: pkp/ojs#4244
PKP-LIB: #9888

Thanks, @defstat, I've added a review on pkp-lib: #9888 (review)

Thanks, @defstat, I added a few commits and merged the following PRs based on yours:

I've also ported the app-specific changes to OMP and OPS main.