Skip to content

Commit

Permalink
fix: 修复邮箱未设置提示
Browse files Browse the repository at this point in the history
  • Loading branch information
shaohuzhang1 committed Oct 29, 2024
1 parent 2910406 commit 0d263a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/users/serializers/user_serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ def send(self):
system_setting = QuerySet(SystemSetting).filter(type=SettingType.EMAIL.value).first()
if system_setting is None:
user_cache.delete(code_cache_key_lock)
raise AppApiException(1004, "邮箱未设置,请联系管理员设置")
raise AppApiException(1004, "邮箱服务未设置,请联系管理员到【邮箱设置】中设置邮箱服务。")
try:
connection = EmailBackend(system_setting.meta.get("email_host"),
system_setting.meta.get('email_port'),
Expand Down

0 comments on commit 0d263a3

Please sign in to comment.