FIX: Improve error message when login_required sites are under load

Previously a confusing message would pop up making private communities thing that anonymous access is granted.
This commit is contained in:
Bianca Nenciu 2021-02-24 04:25:55 +02:00 committed by GitHub
parent c9256b717f
commit 845987ce23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -72,7 +72,9 @@ export default Component.extend({
removeCookie("dosp", { path: "/" }); removeCookie("dosp", { path: "/" });
notices.push( notices.push(
Notice.create({ Notice.create({
text: I18n.t("forced_anonymous"), text: this.siteSettings.login_required
? I18n.t("forced_anonymous_login_required")
: I18n.t("forced_anonymous"),
id: "forced-anonymous", id: "forced-anonymous",
}) })
); );

View File

@ -3634,6 +3634,7 @@ en:
custom_message_template_topic: "Hey, I thought you might enjoy this topic!" custom_message_template_topic: "Hey, I thought you might enjoy this topic!"
forced_anonymous: "Due to extreme load, this is temporarily being shown to everyone as a logged out user would see it." forced_anonymous: "Due to extreme load, this is temporarily being shown to everyone as a logged out user would see it."
forced_anonymous_login_required: "The site is under extreme load and cannot be loaded at this time, try again in a few minutes."
footer_nav: footer_nav:
back: "Back" back: "Back"