sessions: remove legacy user_name / password_hash cookies.
Remove support for logging in with the deprecated user_name /
password_hash cookies. Followup to 320ff01e0.
This commit is contained in:
@@ -151,15 +151,6 @@ class UserTest < ActiveSupport::TestCase
|
||||
end
|
||||
|
||||
context "password" do
|
||||
should "match the cookie hash" do
|
||||
@user = FactoryBot.create(:user)
|
||||
@user.password = "zugzug5"
|
||||
@user.password_confirmation = "zugzug5"
|
||||
@user.save
|
||||
@user.reload
|
||||
assert(User.authenticate_cookie_hash(@user.name, @user.bcrypt_cookie_password_hash))
|
||||
end
|
||||
|
||||
should "match the confirmation" do
|
||||
@user = FactoryBot.create(:user)
|
||||
@user.old_password = "password"
|
||||
|
||||
Reference in New Issue
Block a user