FIX: Password required flag should be cleared whenever clearing the raw password (#5384)

This commit is contained in:
Vinoth Kannan
2017-12-01 09:49:24 +05:30
committed by Sam
parent 9876f3d0ee
commit 7f2eeaf767
7 changed files with 38 additions and 12 deletions

View File

@ -644,7 +644,7 @@ describe User do
UserAuthToken.generate!(user_id: @user.id)
@user.password = "passwordT"
@user.password = "passwordT0"
@user.save!
# must expire old token on password change