mirror of
https://github.com/discourse/discourse.git
synced 2025-05-25 19:29:34 +08:00
FIX: Show the SMTP authentication error for group UI (#27914)
Originally in 964da218173db007fefe6357e96292f5545c513e we hid the SMTPAuthenticationError message except in very specific cases. However this message often contains helpful information from the mail provider, for example here is a response from Office365: > 535 5.7.139 Authentication unsuccessful, user is locked by your organization's security defaults policy. Contact your administrator. So, we will show the error message in the modal UI instead of supressing it with a generic message to be more helpful.
This commit is contained in:
@ -45,7 +45,14 @@ RSpec.describe ProblemCheck::GroupEmailCredentials do
|
||||
target: group2.id,
|
||||
priority: "high",
|
||||
message:
|
||||
"There was an issue with the email credentials for the group <a href=\"/g/#{group2.name}/manage/email\"></a>. No emails will be sent from the group inbox until this problem is addressed. There was an issue with the SMTP credentials provided, check the username and password and try again.",
|
||||
I18n.t(
|
||||
"dashboard.problem.group_email_credentials",
|
||||
base_path: Discourse.base_path,
|
||||
group_name: group2.name,
|
||||
group_full_name: group2.full_name,
|
||||
error:
|
||||
I18n.t("email_settings.smtp_authentication_error", message: "bad credentials"),
|
||||
),
|
||||
),
|
||||
)
|
||||
end
|
||||
@ -63,7 +70,14 @@ RSpec.describe ProblemCheck::GroupEmailCredentials do
|
||||
target: group3.id,
|
||||
priority: "high",
|
||||
message:
|
||||
"There was an issue with the email credentials for the group <a href=\"/g/#{group3.name}/manage/email\"></a>. No emails will be sent from the group inbox until this problem is addressed. There was an issue with the IMAP credentials provided, check the username and password and try again.",
|
||||
I18n.t(
|
||||
"dashboard.problem.group_email_credentials",
|
||||
base_path: Discourse.base_path,
|
||||
group_name: group3.name,
|
||||
group_full_name: group3.full_name,
|
||||
error:
|
||||
I18n.t("email_settings.imap_authentication_error", message: "bad credentials"),
|
||||
),
|
||||
),
|
||||
)
|
||||
end
|
||||
|
Reference in New Issue
Block a user