This project is a small experiment to test Passwordless and understand if is possible Passwordless and Devise working together.
- Ruby - v2.6.3
- Ruby on Rails - Rails v6.0.3
- PostgreSQL - 10 +
- Yarn - Yarn v1.21.1
Follow these steps to set up Passwordless in your local environment:
First clone this repository to your project directory:
git clone git@github.com:alessandrostein/passwordless.gitInstall all dependencies
bundle install
yarn installNext, create database
rails db:createThen, run the migrations
rails db:migrateFinally, run the server
rails serverYes, it's possible. This repository has two releases, take a look at:
Using two models, one model for Devise (User) and another for Passwordless (Donor). Keep the controllers isolated for each one.
Using the same model User, keep your controller isolated for each one and when you create a new Donor (user without password), you must skip the password validation.