# Luming AI Admin V1 Guide

## Open Admin

1. Log in with an admin account.
2. Open the profile center.
3. Click the admin entry, or open `/?admin=1`.
4. Enter the admin secondary password.

Admin verification lasts about 12 hours in the current session.

## Operations Overview

The admin panel shows user count, recent active users, credit balance, credit usage, recharge orders, paid amount, active recharge cards, and saved result files.

## Recharge Orders

Before confirming an order, check the user account, payment amount, and selected package. After confirmation, the system adds credits and writes both a credit ledger entry and an admin log entry.

## Recharge Cards

Generated card codes are shown only once. Put them into the delivery channel immediately after generating. The backend stores only hashes and cannot recover plaintext card codes later.

## User Credits

Search by user id, email, account name, or nickname. Use positive numbers to add credits and negative numbers to deduct credits. Always write a clear reason.

## Forgotten Account Or Password

If a user forgets the account, ask for nickname, user id, registered email, payment record, or recharge card delivery record, then search in the admin user list.

If a user forgets the password, ask them to click "用邮箱找回密码" on the login page. The system sends a 6-digit code to their registered email and lets them set a new password. Admins should not send temporary passwords to users.

## Current Data Storage

Admin V1 still uses JSON files:

- `storage/accounts.json`: users, sessions, credit ledger, recharge cards, orders, admin logs, and password reset codes.
- `storage/results/`: saved user results.
- `storage/chat-workspace.json`: chat workspace data.

This is enough for early usage. When user volume grows, migrate to SQLite, MySQL, or PostgreSQL.

## Daily Practice

- Check pending recharge orders daily.
- Move generated card codes to your delivery channel immediately.
- Always write reasons for manual credit changes.
- Back up `storage/` regularly.
- For login, credit, or order disputes, check admin logs first.
