Sha256: f58bc864ba34ead0404648f1d3dfcb85985686c46ed814edab462b5bbf860269

Contents?: true

Size: 638 Bytes

Versions: 8

Compression:

Stored size: 638 Bytes

Contents

# Two Factor Authentication

## Setup

run `bin/rails db:encryption:init` and use `bin/rails credentials:edit` to add the resulting keys to your `secrets.yml`

Add the following gems to your `Gemfile` and run `bundle install`

```ruby
gem "devise-two-factor"
gem "rqrcode"
```

If you haven't already done so, set the environment variable `RAILS_MASTER_KEY` with the contents of `config/master.key`. Note, this file should not be committed to git, and you should keep it in a safe place.

Now in the user's Account Details page there will be an option to enable two factor, and when enabled the two factor code will be required at login.

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
bullet_train-1.2.7 docs/two-factor-authentication.md
bullet_train-1.2.6 docs/two-factor-authentication.md
bullet_train-1.2.5 docs/two-factor-authentication.md
bullet_train-1.2.4 docs/two-factor-authentication.md
bullet_train-1.2.3 docs/two-factor-authentication.md
bullet_train-1.2.2 docs/two-factor-authentication.md
bullet_train-1.2.1 docs/two-factor-authentication.md
bullet_train-1.2.0 docs/two-factor-authentication.md