For cases where the user is not found and a login is attempted
in error we provide a link url if set (production it's always set)
with a translated string describing the problem. Render the error
as html instead of returning raw html back
fixes FOO-3185
flag = none
Test plan:
• Prerequisite:
• A user with a valid login, a published course with
a self-enroll link created, and Self Registration
enabled
• Within rails console:
Setting.set(
"invalid_login_faq_url",
"https://community.canvaslms.com/docs/DOC-25242-955611231352"
)
• Ensure native Canvas authentication is configured for
self registration for all accounts
• In an incognito window, navigate to the self-enroll link
• Enter the user’s login ID, select “I already have a login”
and enter an incorrect password
• Click Enroll in Course and verify the flash error includes
the proper translated text with a link to our community docs
instead of raw html
Change-Id: Ib5097c41a09366c74b31b157e2106e021e4e1370
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/305232
Reviewed-by: Charley Kline <ckline@instructure.com>
Product-Review: Charley Kline <ckline@instructure.com>
Product-Review: August Thornton <august@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>