-
Notifications
You must be signed in to change notification settings - Fork 7
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
Comments
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. |
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? |
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 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 |
Perhaps the updated issue text/title will communicate better what I was looking for earlier. |
Task breakdown:
|
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.
The text was updated successfully, but these errors were encountered: