It validates the record. If a user updates their OTP code on their device, but the record fails to save, the two will be out of sync. Other devise extensions skip validations for this reason, so we should too.
This change is a simple replacement of update_attributes with update_columns.
There are two problems using
update_attributes
:This change is a simple replacement of
update_attributes
withupdate_columns
.