codeforUV / food_resources

A project that aims to increase food access for residents of the Upper Valley region of VT/NH
https://food-resources.herokuapp.com
MIT License
1 stars 6 forks source link

Remove devise and add authentication "from scratch" #104

Closed thomascchen closed 2 years ago

thomascchen commented 2 years ago

This rips out devise and replaces it with simple authentication from scratch. Our authentication needs are pretty simple, and Devise adds a bunch of things we don't need. Devise also actually advises that new Rails apps not start with the gem.

This approach is heavily inspired by https://github.com/stevepolitodesign/rails-authentication-from-scratch#step-6-create-current-model-and-authentication-concern