p2-inc / phasetwo-admin-portal

https://phasetwo.io
Other
19 stars 14 forks source link

Invitation email from admin portal has no link to accept invitation #108

Closed SangI762 closed 1 year ago

SangI762 commented 1 year ago

Hello, I've been testing the invitation flow and as the organization owner, I send an invitation from the admin portal. But the receiver got an email without a link to accept:

EMAIL has been invited to join SecondCompany at Realm by NAME (email). To accept or reject this invitation, click on the link below to log in.

What am I missing?

xgp commented 1 year ago

You can either customize the email template in the organization extension

or set the redirectUrl when making the call to the endpoint https://phasetwo.io/api/add-organization-invitation. There is currently no default link, as there wouldn't be a way to know which client_id to use.

SangI762 commented 1 year ago

@xgp Hmm, okay, but when I register with the invited email (using admin-portal client) I do not become a member of the organization. Should I add something to the link, query parameter, or something? So, I don't know how it works, even if I add a static link to the email template.

SangI762 commented 1 year ago

Oh, I found that the invitation action was disabled. Thanks.

xgp commented 1 year ago

Also, if you don't want to update the code/themes to add a link to the invitation emails, you can do it in the admin UI in Styles->Emails image