thedouglenz / thou_hast_been

0 stars 0 forks source link

Valid bit in user model #25

Closed thedouglenz closed 10 years ago

thedouglenz commented 10 years ago

Users who register locally should have to confirm their email. A message will be sent to them containing a link routing to a function here in the web app.

The user model should have a valid bit confirming they are fully registered.

Users who login via Facebook or Google+ should have their valid bit immediately set to 1, true, whatever.

Use the smallest BSON datatype possible for this. For example, in MySql we would use TINYINT(1)

thedouglenz commented 10 years ago

I wrote some of this recently.

In the User model we have a valid boolean. For FB and G+ users it is immediately set to true.

For local users it is set to false.

Need to write the route that validates users when they check their email. it will be domain.com/validate_local_user_accnt/{user_id} (using the UUID provided by mongodb)

thedouglenz commented 10 years ago

Closing: New issue ticket for the remainder of this assignment