mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08:00
FIX: Invalid token error incorrectly displayed on email login page.
This commit is contained in:
@ -146,9 +146,15 @@ RSpec.describe SessionController do
|
||||
|
||||
expect(response.status).to eq(200)
|
||||
|
||||
expect(CGI.unescapeHTML(response.body)).to include(I18n.t(
|
||||
response_body = CGI.unescapeHTML(response.body)
|
||||
|
||||
expect(response_body).to include(I18n.t(
|
||||
"login.second_factor_title"
|
||||
))
|
||||
|
||||
expect(response_body).to_not include(I18n.t(
|
||||
"login.invalid_second_factor_code"
|
||||
))
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user