Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#1] New Member Invitation #2

Open
rstackhouse opened this issue May 15, 2012 · 5 comments
Open

[#1] New Member Invitation #2

rstackhouse opened this issue May 15, 2012 · 5 comments
Assignees

Comments

@rstackhouse
Copy link
Member

As a site moderator,
I want the ability to invite new users to the site,
So that we all can benefit from the tools/experience of the invited.

@joraff
Copy link

joraff commented May 15, 2012

Oops, should have read this first before my comment on Issue 1. I still maintain by vote for an invite-only system. That way any new member is 1. hopefully pre-screen by the inviter and 2. encouraged to participate first before getting the invitation.

@rstackhouse
Copy link
Member Author

Spoke to the "customer". He said it should be invite only to mitigate the risk of liability issues. How would you re-write this story?

@joraff
Copy link

joraff commented May 16, 2012

Did you meant to post this somewhere else?

If not:

As the site moderator/create/administrator, I would sent an invitation to a specific email address. That address would receive a URL with a token in the query string, such as http://whosgotwhat.org/user/new/35346fny3736rh. The token is checked and if valid the user is shown the registration page. The user can then proceed to register as a user of the site.

One way to do this cleanly using an MVC framework would be to create an Invitation model and add self-referential associations to our User model as: Invitee and Inviter. So, in code (ruby), something like:

class Invitation < ActiveRecord::Base
    belongs_to :inviter, :class_name => "User"
    belongs_to :invitee, :class_name => "User"
end

class User < ActiveRecord::Base
    has_many :invitations,  :foreign_key => 'inviter_id'
    has_many :invitees,     :through => :invitations
    has_one  :inviter,      :through => :invitations
end

@ghost ghost assigned joraff May 17, 2012
@rstackhouse
Copy link
Member Author

Perhaps the updated issue text/title will communicate better what I was looking for earlier.

@jcarouth
Copy link
Contributor

Task breakdown:

  • Create HTML form
  • Persist form post
  • Send/Email + generate text
  • Email Resend
  • Confirmation Form

@ghost ghost assigned brundage Jun 5, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants