[NEW] Invite links: share a link to invite users#15933
Conversation
|
This pull request introduces 1 alert when merging fa56ae0 into 003e135 - view on LGTM.com new alerts:
|
Co-Authored-By: Rodrigo Nascimento <[email protected]>
|
|
||
| const useDirectLink = settings.get('Accounts_Registration_InviteUrlType') === 'direct'; | ||
| // Remove the last dash if present | ||
| const siteUrl = settings.get('Site_Url').replace(/\/$/g, ''); |
There was a problem hiding this comment.
Could use the getUrl method from here and create an extra option there redirectViaCloud that would populate the host param and will receive others via an object like redirectViCloudParams so we can reuse this logic.
|
|
||
| const useDirectLink = settings.get('Accounts_Registration_InviteUrlType') === 'direct'; | ||
| // Remove the last dash if present | ||
| const siteUrl = settings.get('Site_Url').replace(/\/$/g, ''); |
|
|
||
| export const validateInviteToken = (token) => { | ||
| if (!token) { | ||
| throw new Meteor.Error('error-invalid-token', 'The invite token is invalid.', { method: 'validateInviteToken', field: 'token' }); |
There was a problem hiding this comment.
Not sure, why no token is an exception and an invalid token is a false return? Aren't they all invalid?
I'd agree to never return false, always an exception or the {invite, room}.
|
Can you translate to pt-BR as well? |
|
This pull request introduces 2 alerts when merging 31c5d60 into c558273 - view on LGTM.com new alerts:
|
…default-favorite-channels * 'develop' of github.com:RocketChat/Rocket.Chat: Change version to 2.4.0 Update NodeJS to 8.17.0 (#16043) [NEW] Invite links: share a link to invite users (#15933) Fix typo in Italian translation (#15998) Update Meteor 1.8.3 (#16037) [FIX] Importer: Variable name appearing instead of it's value (#16010) [IMPROVE] Replace livechat:inquiry publication by REST and Streamer (#15977) [IMPROVE] Sorting on livechat analytics queries were wrong (#16021) [IMPROVE] Replace fullUserData publication by REST (#15650) [IMPROVE] Replace integrations and integrationHistory publications by REST (#15885) Some performance improvements (#15886) [FIX]Add time format for latest message on the sidebar (#15930) [FIX] Admin Setting descriptions and Storybook (#15994) Bump version to 2.3.2 [FIX] Invalid Redirect URI on Custom OAuth (#15957) [NEW] Livechat Widget version 1.3.0 (#15966)
|
Hi, is there any documentation about this feature? How does it look like and how do I use this it? Are there any parameters configureable (e.g. the expiration time for the link)? |
Closes #ISSUE_NUMBER