You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generates a column add_column :users, :second_factor_attempts_count, :integer. On new
or existing accounts this column will be null however in two_factor_authentication_controller.rb:60 this
field is incremented by one, causing the NoMethodError: undefined method + for nil:NilClass Error.
Resolution
Handle the null case or update the migration to include default: 0
The text was updated successfully, but these errors were encountered:
Issue
If a user has never preformed a successful two factor authentication, and they get the
authentication code wrong, they will be met with a 500 error.
Cause
The migration generated in the initial setup instructions has a bug:
Generates a column
add_column :users, :second_factor_attempts_count, :integer
. On newor existing accounts this column will be
null
however intwo_factor_authentication_controller.rb:60
thisfield is incremented by one, causing the
NoMethodError: undefined method + for nil:NilClass
Error.Resolution
Handle the null case or update the migration to include
default: 0
The text was updated successfully, but these errors were encountered: