|
|
927f235537
|
refactor: 移除邮件功能
发信能力整体下线,唯一的调用方(忘记密码)前端也从来没接过。
- utils/shortcuts.py 删 send_email,连带四个 django.core.mail 相关 import
- account/tasks.py 整个删除,里面只有 send_email_async 一个 actor
- 删 ApplyResetPasswordAPI / ResetPasswordAPI 及其路由、serializer,
User.reset_password_token 和 reset_password_token_expire_time 两个
字段(account/0010)
- 删 SMTPAPI / SMTPTestAPI 及其路由、三个 SMTP serializer、
SysOptions.smtp_config
- account/templates/reset_password_email.html
options/0003 数据迁移删掉库里的 smtp_config 行:_init_option 会为每个
OptionKey 建行,key 从代码里去掉后它会变成孤儿,而且配过 SMTP 的话
value 里存着明文密码。
保留 ResetUserPasswordAPI(管理端直接重置密码,不发信,前端在用)和
User.email(注册要填)。
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
|
2026-08-05 23:17:48 -06:00 |
|
|
|
9f7f818d51
|
新增 SQL 题型:SQLite 内联判题(不依赖外部沙箱)
- SQL 作为语言接入现有提交流程,judge_task 按 language 分流到 SQLJudgeDispatcher
- judge/sql_runner.py:内存 SQLite 判题核心,查询题比结果集/增删改题比表状态,
authorizer + progress_handler + max_page_count 三重防护
- dispatcher 提取 _process_judge_result/_push_status 供 SQL 判题复用(行为不变)
- 测试点通道支持 1.sql..N.sql 压缩包,出题只需数据脚本+标准答案
- Problem 增加 sql_config 字段;options 数据迁移注册 SQL 语言
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
2026-07-02 17:23:13 -06:00 |
|
|
|
45d727a9e0
|
删掉旧的数据库迁移文件
|
2025-06-14 17:08:52 +08:00 |
|
yuetsh
|
bef87ed554
|
add tag for announcement
|
2024-06-13 15:30:21 +08:00 |
|
virusdefender
|
abfe99a8bf
|
add sysoptions languages migrations
|
2019-03-26 10:32:29 +08:00 |
|
virusdefender
|
3bb3becfcf
|
alter to text field
|
2018-05-01 12:56:23 +08:00 |
|
zema1
|
e8841eae82
|
add dockerfiles
|
2017-10-23 20:59:44 +08:00 |
|
zema1
|
080ecf1bcf
|
migrate to postgres json field
|
2017-10-11 21:43:29 +08:00 |
|
virusdefender
|
9990cf647a
|
使用 SysOptions
|
2017-10-02 03:54:34 +08:00 |
|