ayuan
|
a2d95f62c4
|
Update github.go
在该函数中,有一行注释显示了一个严重错误:github.go:203-204GitHubBind
错误在第 204 行,代码从会话中检索用户 ID,但有一个带注释的第 203 行显示了原始(有问题的)实现:github.go:203// id := c.GetInt("id") // critical bug!
问题
原始的 bug 代码会尝试从 Gin 上下文中获取用户 ID,但这将失败,因为:c.GetInt("id")
用户 ID 不会在此端点的 Gin 上下文中自动设置
这可能会返回 0 或在尝试绑定 GitHub 帐户时导致 panic
然后,该函数将尝试更新 ID 为 0 的用户,而该 ID 不存在
|
2025-07-03 11:33:35 +08:00 |
|
wozulong
|
c47e1dc6fe
|
merge upstream
Signed-off-by: wozulong <>
|
2024-10-14 16:31:22 +08:00 |
|
1808837298@qq.com
|
972ac1ee0f
|
fix: 第三方登录注销 #500
|
2024-09-25 17:13:28 +08:00 |
|
wozulong
|
7ddb7c586d
|
1. add LINUX DO oauth
2. fix oauth reg aff issue
Signed-off-by: wozulong <>
|
2024-03-14 18:53:54 +08:00 |
|
JustSong
|
39ae8075e4
|
fix: fix oauth2 state not checking
|
2023-09-15 00:24:20 +08:00 |
|
JustSong
|
c5837c3bb7
|
feat: support aff now (close #75)
|
2023-06-17 18:12:58 +08:00 |
|
JustSong
|
539eac217f
|
Rename to One API
|
2023-04-22 21:14:09 +08:00 |
|
JustSong
|
ab1f8a2bf4
|
Initial commit
|
2023-04-22 20:39:27 +08:00 |
|