therealtimetourist / dinnerandamovie

Group Project 1
1 stars 1 forks source link

Create functionality to Add a new user profile to the database #21

Closed bernardw01 closed 7 years ago

bernardw01 commented 7 years ago

Building out user functionality to adhere to the following User Object Model /Users/ //Prepare the user object var newUser = { userDisplayName: fullName, userEmail: email, userRole: role, userActive: true, entryDate: Date.now(), lastChangeDate: Date.now(), lastModifiedBy: sessionStorage.getItem('email'), preferences: { restaurantPrefs: { fastFood: false, casual: false, fineDining: false, cafe: false, foodTruck: false, buffet: false, indian: false, mexican: false }, moviePrefs: { horror: false, comedy: false, animation: false, romance: false, action: false, documentary: false, foreign: false, family: false, ratings: { G: false, PG: false, PG13: false, R: false } }, searchRadius: 10 } };

bernardw01 commented 7 years ago
bernardw01 commented 7 years ago

The user from the database will be stored in the session as an object that you can use.