mirror of
https://wget.la/https://github.com/432539/gpt
synced 2026-08-17 03:26:59 +08:00
Initial commit: GPT 账号注册机 (open source)
只开源「GPT 账号注册机 / 管理」(account-manager):账号列表/导入导出、检测/批量检测、 拿 RT、协议/浏览器注册等注册机能力。批量直开 / 协议支付 / 提取链接 / 直卡直开 等其它功能 不含实现代码,仅通过 iframe 内嵌外链访问。真实机密均由 .gitignore 忽略,仅提供脱敏示例配置。
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
// 注册密码统一来源 —— 协议模式(reg_runner.mjs) 与 浏览器模式(cloak_reg_runner.mjs) 共用。
|
||||
//
|
||||
// 为什么改成「固定/确定性密码」而不是每次随机:
|
||||
// 随机密码会导致「同一邮箱之前已建号、这次又进来」时用新的随机密码去登录 → OpenAI 报
|
||||
// "Incorrect email address or password",账号再也拿不到登录态。固定密码让「建号」和
|
||||
// 「已注册邮箱重进时的登录」始终用同一个口令,也方便导出账密后人工登录。
|
||||
//
|
||||
// 优先级:显式传入 input.password > settings.regPassword(用户可在设置里改)> 内置默认强密码。
|
||||
// 开源版这里仅放一个占位默认口令;请在「设置 → 浏览器 → 注册密码」中填写你自己的强口令,
|
||||
// 或在真实(被 .gitignore 忽略的)settings.json 里配置 regPassword。
|
||||
export const DEFAULT_REG_PASSWORD = 'ChangeMe#2026Pw!';
|
||||
|
||||
export function resolveRegPassword(input = {}, settings = {}) {
|
||||
const fromInput = input && typeof input.password === 'string' ? input.password.trim() : '';
|
||||
const fromSettings = settings && typeof settings.regPassword === 'string' ? settings.regPassword.trim() : '';
|
||||
return fromInput || fromSettings || DEFAULT_REG_PASSWORD;
|
||||
}
|
||||
Reference in New Issue
Block a user