MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / checkInboxCode

Function checkInboxCode

static/js/accounts.js:2230–2242  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

2228
2229// 查询收件箱验证码
2230async function checkInboxCode(id) {
2231 toast.info('正在查询收件箱...');
2232 try {
2233 const result = await api.post(`/accounts/${id}/inbox-code`);
2234 if (result.success) {
2235 showInboxCodeResult(result.code, result.email);
2236 } else {
2237 toast.error('查询失败: ' + (result.error || '未收到验证码'));
2238 }
2239 } catch (error) {
2240 toast.error('查询失败: ' + error.message);
2241 }
2242}
2243
2244function showInboxCodeResult(code, email) {
2245 elements.modalBody.innerHTML = `

Callers

nothing calls this directly

Calls 4

showInboxCodeResultFunction · 0.85
infoMethod · 0.80
errorMethod · 0.80
postMethod · 0.45

Tested by

no test coverage detected