没有配置邮件的情况下,在seahub_settings.py中设置了
ACTIVATE_AFTER_REGISTRATION = False
SEND_EMAIL_ON_ADDING_SYSTEM_MEMBER = False
SEND_EMAIL_ON_RESETTING_USER_PASSWD = False
NOTIFY_ADMIN_AFTER_REGISTRATION = False
但是管理员激活用户和用户发起忘记密码的时候依然会提示邮件发送失败,请问有没有选项可以关掉这两项提示?
删掉 seahub_settings.pyc 重启seafile
事实上我删过了…
后来我看了一下,在sysadmin.py里面
if user.is_active is True:
try:
email_user_on_activation(user)
email_sent = True
except Exception as e:
logger.error(e)
email_sent = False
return HttpResponse(json.dumps({'success': True,
'email_sent': email_sent,
}), content_type=content_type)
return HttpResponse(json.dumps({'success': True}),
content_type=content_type)
并没有判断IS_EMAIL_CONFIGURED
或者那几个选项…