A platform for community discussion. Free, open, simple.
DEV: Allow auth errors to render HTML (#26686)
Mark VanLandingham239eac7799d4
diff --git a/app/assets/javascripts/discourse/app/instance-initializers/auth-complete.js b/app/assets/javascripts/discourse/app/instance-initializers/auth-complete.jsindex 2fb8c842a7b..367d6f0b0fd 100644--- a/app/assets/javascripts/discourse/app/instance-initializers/auth-complete.js+++ b/app/assets/javascripts/discourse/app/instance-initializers/auth-complete.js@@ -1,5 +1,6 @@import EmberObject from "@ember/object";import { next } from "@ember/runloop";+import { htmlSafe } from "@ember/template";import CreateAccount from "discourse/components/modal/create-account";import LoginModal from "discourse/components/modal/login";import cookie, { removeCookie } from "discourse/lib/cookie";@@ -90,7 +91,7 @@ export default {for (let i = 0; i < AuthErrors.length; i++) {const cond = AuthErrors[i];if (options[cond]) {- return loginError(I18n.t(`login.${cond}`));+ return loginError(htmlSafe(I18n.t(`login.${cond}`)));}}