fix: restore soft-deleted users on login

This commit is contained in:
2026-06-15 07:36:13 +08:00
parent 04d30f9dd1
commit 346cf0e4a6
13 changed files with 234 additions and 37 deletions
+5
View File
@@ -95,6 +95,11 @@ func TelegramLogin(c *gin.Context) {
})
return
}
if err := user.RestoreIfDeleted("telegram", c.ClientIP()); err != nil {
common.SysError("failed to restore user: " + err.Error())
common.ApiError(c, err)
return
}
setupLogin(&user, c)
}