Sha256: bceeab1cb69dcffe3bd776a6a1725bf7ff4615f5f7cdbc78f28442ce09976570
Contents?: true
Size: 442 Bytes
Versions: 2
Compression:
Stored size: 442 Bytes
Contents
# Guide to upgrading from 1.x to 2.x Pull request #43 added a new field to protect against "shoulder-surfing" attacks. If upgrading, you'll need to add the `:consumed_timestep` column to your `Users` model. ```ruby class AddConsumedTimestepToUsers < ActiveRecord::Migration def change add_column :users, :consumed_timestep, :integer end end ``` All uses of the `valid_otp?` method should be switched to `validate_and_consume_otp!`
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
devise-two-factor-2.1.0 | UPGRADING.md |
devise-two-factor-2.0.1 | UPGRADING.md |