-
Notifications
You must be signed in to change notification settings - Fork 96
Description
I understand from #224 and various other tickets that there are issues with mailing out links and making sure you are authenticated before accepting the invitation. But another useful and related feature would be to display the link on the "Staff" page. This would eliminate the need to even have a mail server because the admin could add a person and then send them the link directly (e.g., via a Teams channel or something).
In one of the issues, they mention that if you don't have a mail server it will print the email or invite to stdout. I didn't see that.
Is there a reason not to display the invite link on that screen? It appears that the URL for the invite is a simple template involving the token. The token is stored in the database. But when a query is made for invitations, the payload doesn't include the link. Since only "admins or owners" can get a list of invites, why not return the url (or at least the token) in the serialized payload? Then, you could just include it here in the UI.
I'm trying to figure out if this was done deliberately or whether you would accept a PR for this functionality (since it seems like just a few lines of non-breaking changes to implement).