Skip to content

Commit 6678412

Browse files
committed
More Fixes
1 parent 5e40702 commit 6678412

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/two_factor_authentication/models/two_factor_authenticatable.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def direct_otp_expired?
122122
end
123123

124124
def clear_direct_otp
125-
update_attributes(direct_otp: nil, direct_otp_sent_at: nil)
125+
update(direct_otp: nil, direct_otp_sent_at: nil)
126126
end
127127
end
128128

0 commit comments

Comments
 (0)