feat(api): Key 改为明文保存可随时复制,新增口令列与一键复制接入信息(地址+使用者+口令)
This commit is contained in:
@@ -73,6 +73,8 @@ function create() {
|
||||
const rec = {
|
||||
id: 'key_' + crypto.randomBytes(4).toString('hex'),
|
||||
name,
|
||||
// 内部使用:明文保存,便于后台查看/复制;hash 仅作兼容
|
||||
key: raw,
|
||||
hash: crypto.createHash('sha256').update(raw).digest('hex'),
|
||||
enabled: true,
|
||||
ratePerMin: Number(args.rate || CONFIG.defaultRatePerMin || 60),
|
||||
|
||||
Reference in New Issue
Block a user