Commit Graph

15 Commits

Author SHA1 Message Date
阿彭Baileys b4f14ae3e7 Bilingual support, with full system support for Chinese and English switching. 2025-03-09 19:09:00 +08:00
戒酒的李白 5630b30002 Comprehensive enhancement of user authentication system security, including password storage, session management, XSS/CSRF protection, etc. 2025-03-07 19:32:19 +08:00
多多 673eb0245a 注册漏洞修复,增强用户认证系统安全性 2025-03-06 08:14:16 +08:00
戒酒的李白 c62f2b2a8e Added a logging utility class and supplemented, standardized the logging output for all modules. 2025-01-27 18:09:30 +08:00
lycorisk 38c11b05d5 Update user.py
1,密码哈希:
    将密码加盐哈希的逻辑抽取到 hash_password 函数中,提高代码复用性。
2,参数化查询:
    使用参数化的 SQL 查询防止 SQL 注入攻击。
3表单字段获取:
    使用 get 方法获取表单字段,并移除多余空格。
4,友好错误提示:
    登录失败时,返回错误信息,并保留用户名以减少用户重新输入的负担。
2024-12-10 21:28:12 +08:00
戒酒的李白 1b19855915 【user.py】登录控制器修改 2024-07-03 21:41:44 +08:00
kpt e49fc0e517 【user.py】删除后端注册过程中的确认密码逻辑,确认密码在前端完成 2024-07-03 20:43:56 +08:00
kpt 3acbb1e0fe 【user.py】修复了密码值返回的是函数的 Bug 2024-07-03 18:42:41 +08:00
kpt 86533a51a9 【user.py】修复了哈希是全局变量的bug 2024-07-03 18:39:27 +08:00
kpt d2f1064065 【user.py】密码存储方式调整为哈希加盐 2024-07-03 18:23:43 +08:00
kpt 5c985a4b5c 【errorResponse.py】重命名errResp 2024-07-03 14:07:22 +08:00
kpt 7f5d2a0858 【user.py】添加登出接口 2024-07-02 17:10:50 +08:00
kpt 30e9c5ac99 【user.py】添加注册接口 2024-07-02 17:09:39 +08:00
kpt c7e8411092 【user.py】添加登录接口 2024-07-02 17:06:13 +08:00
kpt 8e628e23cc 初始化 user 模块 2024-07-02 16:36:04 +08:00