Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix invalid login message #7034

Merged
merged 1 commit into from
May 5, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions spec/controllers/dashboard_controller/verify_user_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,14 @@
it 'fails for an existing user with wrong password' do
validation = controller.send(:validate_user, invalid_password, nil)
expect(validation.result).to eq(:fail)
expect(validation.flash_msg).to eq("Sorry, the username or password you entered is incorrect.")
expect(validation.flash_msg).to eq("The username or password you entered is incorrect.")
expect(validation.url).to be_nil
end

it 'fails for an invalid user' do
validation = controller.send(:validate_user, invalid_user, nil)
expect(validation.result).to eq(:fail)
expect(validation.flash_msg).to eq("Sorry, the username or password you entered is incorrect.")
expect(validation.flash_msg).to eq("The username or password you entered is incorrect.")
expect(validation.url).to be_nil
end

Expand Down