Skip to content

alessandrostein/passwordless

Repository files navigation

Passwordless

This project is a small experiment to test Passwordless and understand if is possible Passwordless and Devise working together.

Requirements

Setup

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.git

Install all dependencies

bundle install
yarn install

Next, create database

rails db:create

Then, run the migrations

rails db:migrate

Finally, run the server

rails server

Passwordless and Devise together?

Yes, 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.