52
52
"invite_from_person_to_space" : "[%(app)s] %(person)s has invited you to join the %(space)s space on %(app)s..." ,
53
53
"password_reset" : "[%(server_name)s] Password reset" ,
54
54
"email_validation" : "[%(server_name)s] Validate your email" ,
55
+ "email_already_in_use" : "[%(server_name)s] Email already in use" ,
55
56
}
56
57
57
58
LEGACY_TEMPLATE_DIR_WARNING = """
@@ -76,6 +77,7 @@ class EmailSubjectConfig:
76
77
invite_from_person_to_space : str
77
78
password_reset : str
78
79
email_validation : str
80
+ email_already_in_use : str
79
81
80
82
81
83
class EmailConfig (Config ):
@@ -180,6 +182,12 @@ def read_config(self, config: JsonDict, **kwargs: Any) -> None:
180
182
registration_template_text = email_config .get (
181
183
"registration_template_text" , "registration.txt"
182
184
)
185
+ already_in_use_template_html = email_config .get (
186
+ "already_in_use_template_html" , "already_in_use.html"
187
+ )
188
+ already_in_use_template_text = email_config .get (
189
+ "already_in_use_template_html" , "already_in_use.txt"
190
+ )
183
191
add_threepid_template_html = email_config .get (
184
192
"add_threepid_template_html" , "add_threepid.html"
185
193
)
@@ -215,6 +223,8 @@ def read_config(self, config: JsonDict, **kwargs: Any) -> None:
215
223
self .email_password_reset_template_text ,
216
224
self .email_registration_template_html ,
217
225
self .email_registration_template_text ,
226
+ self .email_already_in_use_template_html ,
227
+ self .email_already_in_use_template_text ,
218
228
self .email_add_threepid_template_html ,
219
229
self .email_add_threepid_template_text ,
220
230
self .email_password_reset_template_confirmation_html ,
@@ -230,6 +240,8 @@ def read_config(self, config: JsonDict, **kwargs: Any) -> None:
230
240
password_reset_template_text ,
231
241
registration_template_html ,
232
242
registration_template_text ,
243
+ already_in_use_template_html ,
244
+ already_in_use_template_text ,
233
245
add_threepid_template_html ,
234
246
add_threepid_template_text ,
235
247
"password_reset_confirmation.html" ,
0 commit comments