Fix #37: 修复管理员用户名显示问题 - #39
Closed
claude[bot] wants to merge 1 commit into
Closed
Conversation
- 将管理员用户显示名称从 'Admin Token' 改为 'Admin (token_prefix...)' - 显示管理员令牌的前8位作为标识,便于区分不同的管理员会话 - 保持普通用户的正常显示逻辑不变
Contributor
Author
|
✅ 修复完成 已成功修复 Issue #37 中提出的管理员用户名显示问题: 修改内容:
预期效果:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Close #37
问题描述
当前通过环境变量 ADMIN_TOKEN 登录的管理员用户,在顶部导航栏显示的用户名是固定的 'Admin Token',无法区分具体是哪个管理员令牌登录的。
解决方案
修改 src/lib/auth.ts 中的管理员用户创建逻辑:
修改内容
预期效果