feat(auth): 注册协议 - 增加同意校验并预留影策协议正文

This commit is contained in:
陈泽
2026-09-20 22:57:31 +08:00
parent 0e3fb79ba6
commit 316386a2bd
16 changed files with 372 additions and 30 deletions

View File

@@ -139,7 +139,8 @@ func RegisterAuthRoutes(r *gin.RouterGroup, svc *service.Service) {
if !enforceRateLimit(c, "linuxdo-start:"+c.ClientIP(), 20, 10*time.Minute) {
return
}
target, err := svc.BeginLinuxDOLogin(c.Query("next"))
acceptedTerms := c.Query("acceptedTerms") == "true"
target, err := svc.BeginLinuxDOLogin(c.Query("next"), acceptedTerms)
if err != nil {
failService(c, err)
return