newism / symfony2-standard-template

2 stars 5 forks source link

Implement user invites for registration #4

Closed leevigraham closed 10 years ago

leevigraham commented 10 years ago

Here's my initial requirements which are up for discussion:

Nice to haves / consider:

Existing implementations:

Ping @iainsaxon @ianbelcher

leevigraham commented 10 years ago

Pretty sure this will break the Costimator implementation as we add an error when we create the form if the invitation is not valid (before the form is submitted)

https://github.com/symfony/symfony/commit/9dfebd529edde1f65664a37b009179a78d496335

leevigraham commented 10 years ago

Here's the user invite flow for ClubEvo.

The first invitation code check could be done with a listener that exists early. This would mean the user would not even see the login / register which would be bad. I think catching this in the controller would be better and displaying a flash message.

Not sure how we would handle re-authenticating

clubevo-userinvitation-flowchart

leevigraham commented 10 years ago

Just had a thought. Maybe all invitations should link to /invitaions/claim/xxx. That way any checks can be made to see if the invoice is valid, if the user is already logged in etc. Basically a request proxy to determine the response.