|
1 | | -const AFTER_26_09_2024 = Date.now() >= new Date('2024-09-26T00:00:00Z').getTime() |
2 | | - |
3 | 1 | interface ResourceWarningMessage { |
4 | 2 | // should match pathnames, ex: ('/', 'project/[ref]/auth', 'project/[ref]/database', '/project/[ref]/settings/auth') |
5 | 3 | restrictToRoutes?: string[] |
@@ -214,42 +212,31 @@ export const RESOURCE_WARNING_MESSAGES: Record<string, ResourceWarningMessage> = |
214 | 212 | buttonText: 'Check usage', |
215 | 213 | metric: null, |
216 | 214 | }, |
| 215 | + // [Joshen] We can remove this once auth team gives the signal to |
217 | 216 | auth_restricted_email_sending: { |
218 | 217 | restrictToRoutes: ['/project/[ref]/auth', '/project/[ref]/settings/auth'], // project home, auth, settings |
219 | 218 | bannerContent: { |
220 | 219 | warning: { |
221 | | - title: AFTER_26_09_2024 |
222 | | - ? "Auth emails are restricted to your organization's members" |
223 | | - : "On 26th September: Auth email sending will be restricted to your organization's members", |
224 | | - description: AFTER_26_09_2024 |
225 | | - ? "To fight abuse, emails sent by Auth are restricted to the members of this project's organization. Set up a custom SMTP provider to send messages to any user." |
226 | | - : "To fight abuse, emails sent by Auth will be restricted to the members of this project's organization. Set up a custom SMTP provider before then to send messages to any user and avoid disruptions.", |
| 220 | + title: "Authentication emails are only sent to organization members' email addresses", |
| 221 | + description: |
| 222 | + 'Set up a custom SMTP provider to handle flows like password reset which require sending emails to any user', |
227 | 223 | }, |
228 | 224 | critical: { |
229 | | - title: AFTER_26_09_2024 |
230 | | - ? "Auth emails are restricted to your organization's members" |
231 | | - : "On 26th September: Auth email sending will be restricted to your organization's members", |
232 | | - description: AFTER_26_09_2024 |
233 | | - ? "To fight abuse, emails sent by Auth are restricted to the members of this project's organization. Set up a custom SMTP provider to send messages to any user." |
234 | | - : "To fight abuse, emails sent by Auth will be restricted to the members of this project's organization. Set up a custom SMTP provider before then to send messages to any user and avoid disruptions.", |
| 225 | + title: "Authentication emails are only sent to organization members' email addresses", |
| 226 | + description: |
| 227 | + 'Set up a custom SMTP provider to handle flows like password reset which require sending emails to any user', |
235 | 228 | }, |
236 | 229 | }, |
237 | 230 | cardContent: { |
238 | 231 | warning: { |
239 | | - title: AFTER_26_09_2024 |
240 | | - ? 'Auth emails are restricted' |
241 | | - : 'Action required: Auth emails to be restricted', |
242 | | - description: AFTER_26_09_2024 |
243 | | - ? "Your project can only send Auth emails to your organization's members. Set up a custom SMTP provider to send Auth emails to any user." |
244 | | - : "On 26th September your project will only be able to send Auth emails to your organization's members. Set up a custom SMTP provider before then to avoid disruptions!", |
| 232 | + title: 'Auth emails are restricted', |
| 233 | + description: |
| 234 | + "Your project can only send Auth emails to your organization's members. Set up a custom SMTP provider to send Auth emails to any user", |
245 | 235 | }, |
246 | 236 | critical: { |
247 | | - title: AFTER_26_09_2024 |
248 | | - ? 'Auth emails are restricted' |
249 | | - : 'Action required: Auth emails to be restricted', |
250 | | - description: AFTER_26_09_2024 |
251 | | - ? "Your project can only send Auth emails to your organization's members. Set up a custom SMTP provider to send Auth emails to any user." |
252 | | - : "On 26th September your project will only be able to send Auth emails to your organization's members. Set up a custom SMTP provider before then to avoid disruptions!", |
| 237 | + title: 'Auth emails are restricted', |
| 238 | + description: |
| 239 | + "Your project can only send Auth emails to your organization's members. Set up a custom SMTP provider to send Auth emails to any user.", |
253 | 240 | }, |
254 | 241 | }, |
255 | 242 | docsUrl: 'https://github.com/orgs/supabase/discussions/29370', |
|
0 commit comments