DEV: Allow auth errors to render HTML (#26686)

This commit is contained in:
Mark VanLandingham 2024-04-19 09:11:03 -05:00 committed by GitHub
parent 1deeff2336
commit 239eac7799
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -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}`)));
}
}