Skip to content

Create user login and signup pages  #1

@dvidsilva

Description

@dvidsilva

Use express-passport-local to allow users to create accounts.

There are some guides here:
https://scotch.io/tutorials/easy-node-authentication-setup-and-local

But anything works.

The urls can be:

/user/login
/user/signup

Steps are roughly like:

  • Create a User model
  • Setup express passport
  • Create the views for login and signup
  • Take the users when they're logged in to users/profile
  • Restrict the profile page to users who are not admins
  • Add buttons for login and signup to the homepage
  • Include roles in the user model, possible roles are [standard, admin, superadmin, chef]
  • Create the serializers for the users, so that the role can be accessed in controllers

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions