FIX: Password required flag should be cleared whenever clearing the raw password

This commit is contained in:
Vinoth Kannan 2017-11-30 13:40:18 +05:30
parent 900dec5bc1
commit 1776649b4d
1 changed files with 1 additions and 0 deletions

View File

@ -1029,6 +1029,7 @@ class User < ActiveRecord::Base
UserAuthToken.where(user_id: id).destroy_all
# We should not carry this around after save
@raw_password = nil
@password_required = false
end
end