Skip to content

feat(server): 待审核直接拒绝、设备数量上限与黑名单 - #16

Merged
loyalpartner merged 1 commit into
masterfrom
claude/latest-reply-6e436d
Oct 16, 2026
Merged

loyalpartner merged 1 commit into
masterfrom
claude/latest-reply-6e436d

Conversation

@loyalpartner

Copy link
Copy Markdown
Owner

Follow-up to #15, addressing the concerns raised in #13.

  • Pending and blocklisted devices are refused without any DB write; turning approval off no longer lets pending devices in.
  • New device limit (admin page, default 20, range 1–1000). Once approved + pending devices reach it, unknown devices are refused and not recorded. Blocklisted devices don't count.
  • client_id must be ≤ 64 base64 chars and email ≤ 254 chars; anything else is refused without a write.
  • Admin page: device limit setting, "Rejected" renamed to "Blocklist" with Unblock (forget the row) and Approve, Clear pending, and a resume hint after approval.
  • No new table: blocklist is the existing rejected status, the limit lives in settings.device_limit.

Refs #13

🤖 Generated with Claude Code

- 待审核和黑名单设备的请求直接拒绝,不写库,关开关也不放行
- 新增设备数量上限(默认 20),超出后新设备拒绝且不记录
- 校验 client_id 与邮箱的长度和字符
- 管理页:上限设置、移出黑名单、清空待审核、批准后提示恢复方法
@loyalpartner
loyalpartner merged commit d343a58 into master Oct 16, 2026
1 check passed
@berglh

berglh commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

This looks like a much more complete design for my particular use case. I really appreciate your efforts to address my comments. I will test this in the coming days. ♥️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants