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

User Verification #13

Open
EranSch opened this issue Jul 27, 2014 · 3 comments
Open

User Verification #13

EranSch opened this issue Jul 27, 2014 · 3 comments

Comments

@EranSch
Copy link
Collaborator

EranSch commented Jul 27, 2014

In order to branch the Visitor model discussed in #8 to our Frontend user, a user verification process could be implemented. Essentially...

  1. User creates account on frontend
  2. Plug.dj username is required during signup
  3. Similar to an email verification process, the user is given a verification code.
  4. User must enter plug.dj room and announce code with some sort of command like .verifyme <VerificationCodeHere>
  5. System may now associate a Plug.dj user ID with a MEAN user.

Using this approach, the system can keep up to date stats on the user making personalized details of room activity more accessible and relevant. Further, Frontend permissions could be derived from the user's role/permission level in the room.

@hect1c
Copy link
Owner

hect1c commented Jul 27, 2014

This is a great idea. We should still be able to provide basic functionality for none registered users and be able to maintain their data as I'm sure not every user would want to have to sign up?

@EranSch
Copy link
Collaborator Author

EranSch commented Jul 27, 2014

I think every new user that enters the room should be logged in the Visitors collection. This would contain all the Plug.dj meta data as well as maybe a seen array field that keeps a record of every time the user enters the room.

If it's the first time the user's been in the room then a new record is created. If they're returning then a new date entry is added to the seen array.

Upon signing up on the front end and proceeding through the verification process, a flag would be set on the User record and a reference to the ID of the user's associated entry in the Visitor collection established.

@hect1c
Copy link
Owner

hect1c commented Jul 29, 2014

Good logic. I approve, good job on normalization of the db.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants