Content
View differences
Updated by Jens Ulferts over 2 years ago
**As a** project member
**I want the** user that I invite via share the global user invite functionality or via the member invite functionality work package with to only receive a single mail one emails (instead of two)
**so **So that** the entry barrier for the invited user is as low as possible.
possible.
This was split off of #51262.
**Acceptance criteria**
* The tokens stored ~~When adding a user via work package sharing~~ **already implemented by #51262**
~~For users that have the invited status when the email is sent, the links in the database for mail point to the account activation but include the actual link to the work package via the back\_url parameter. A user following the link will thus first have to complete the registration but upon completion of it is redirected to the work package.~~
* ~~The back\_url parameter needs to be validated so that the host is guaranteed to be the host of the OpenProject instance.~~
* ~~If the user chooses to follow the demo tour after login (it might be that it does not start on work package pages -> to be checked), the user is free to do so.~~
* ~~If the user clicks on the link in the mail again and when being logged in, the user is transparently redirected to the work package.~~
* ~~No notification is displayed stating that the account is already activated.~~
* ~~If the link is expired when the user clicks on it:~~
* ~~A new mail is sent to the user containing an updated link which again points to the account activation with an updated token and with the original target in the back\_url~~
* ~~The browser displays a message stating the process~~
* The tokens should be hashed.
* This requires a user to be able to have multiple invitation tokens as the user might still be invited when another work package is shared with them.
* When adding a user via the project membership UI
* Instead of sending two mails, only the mail with the project information is sent out, again containing a link which includes the account activation as well as a back\_url to the intended target.
* This was already done for the work package sharing mail in #51262
* When adding a user via the invite modal
* Instead of sending two mails, only the mail with the project information is sent out, again containing a link which includes the account activation as well as a back\_url to the intended target.
* This was already done for the work package sharing mail in #51262
* the current account registration mail has additional information
'Please feel free to browse our youtube channel (Youtube Link) where we provide a webinar (Webinar Link) and “Get started” videos (Get Started Videos Link) to make your first steps in OpenProject as easy as possible.
If you have any further questions, consult our documentation (Documentation Link) or contact your administrator.'
* This is to be removed altogether.
**I want the** user
**so
**Acceptance criteria**
* The tokens stored
~~For users that have the invited status when the email is sent, the links
* ~~The back\_url parameter needs to be validated so that the host is guaranteed to be the host of the OpenProject instance.~~
* ~~If the user chooses to follow the demo tour after login (it might be that it does not start on work package pages -> to be checked), the user is free to do so.~~
* ~~If the user clicks on the link in the mail again and when being logged in, the user is transparently redirected to the work package.~~
* ~~No notification is displayed stating that the account is already activated.~~
* ~~If the link is expired when the user clicks on it:~~
* ~~A new mail is sent to the user containing an updated link which again points to the account activation with an updated token and with the original target in the back\_url~~
* ~~The browser displays a message stating the process~~
* The tokens
* This requires a user to be able to have multiple invitation tokens as the user might still be invited when another work package is shared with them.
* When adding a user via the project membership UI
* Instead of sending two mails, only the mail with the project information is sent out, again containing a link which includes the account activation as well as a back\_url to the intended target.
* This was already done for the work package sharing mail in #51262
* When adding a user via the invite modal
* Instead of sending two mails, only the mail with the project information is sent out, again containing a link which includes the account activation as well as a back\_url to the intended target.
* This was already done for the work package sharing mail in #51262
* the current account registration mail has additional information
'Please feel free to browse our youtube channel (Youtube Link) where we provide a webinar (Webinar Link) and “Get started” videos (Get Started Videos Link) to make your first steps in OpenProject as easy as possible.
If you have any further questions, consult our documentation (Documentation Link) or contact your administrator.'
* This is to be removed altogether.