MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / updateStoredCredentials

Method updateStoredCredentials

openlist/openlist.ts:503–509  ·  view source on GitHub ↗
(user?: string, pass?: string)

Source from the content-addressed store, hash-verified

501
502 private async handleLogin(msg: Api.Message, user?: string, pass?: string) {
503 if (!user || !pass) {
504 await msg.edit({ text: `用法: ${commandName} login [用户名] [密码]` });
505 return;
506 }
507 await this.updateStoredCredentials(user, pass);
508 await msg.edit({ text: "✅ 账号信息已保存,可以尝试上传文件了。" });
509 }
510
511 private async handleSetDefault(msg: Api.Message, path?: string) {
512 const db = await this.getDb();

Callers 4

handleInstallMethod · 0.95
handleAdminMethod · 0.95
handleLoginMethod · 0.95

Calls 1

getDbMethod · 0.95

Tested by

no test coverage detected