From 1776649b4d16728b8a8ebcf9133ce9e046fa5bba Mon Sep 17 00:00:00 2001 From: Vinoth Kannan Date: Thu, 30 Nov 2017 13:40:18 +0530 Subject: [PATCH] FIX: Password required flag should be cleared whenever clearing the raw password --- app/models/user.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/user.rb b/app/models/user.rb index 7ba8b057f91..fd7ff74a25e 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -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