stoolball-england / stoolball-org-uk

A rebuild of the Stoolball England website in Umbraco
Other
3 stars 0 forks source link

Enable linking to players who are linked to a member account #675

Open sussexrick opened 3 weeks ago

sussexrick commented 3 weeks ago

This would need to emailing the member to advise them of the change and with a link to cancel or accept it, and timeout that allows the change. A similar process would need to happen to unlink an identity from a member. The timeout has to allow the change, otherwise an identity could be locked to a defunct account without being recoverable.

If the context identity is linked to a MemberKey, do not offer identities which are linked to a MemberKey because they're either already linked or cannot be linked because you can't combine two players that each have a MemberKey.

The UI for teams to link players should offer identities which are:

Note: _LinkedPlayers.cshtml used to have code that said includeLinkedToMember={!Model.Player.MemberKey.HasValue} before this requirement was changed to requiring a permission request.

Update Players.md when done.