Skip to content

Commit 4757230

Browse files
committed
docs: Add a user The default administrator account password is in the comments.
1 parent c0d72ac commit 4757230

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ site.mount_app(app)
7070
@app.on_event("startup")
7171
async def startup():
7272
await site.db.async_run_sync(SQLModel.metadata.create_all, is_session=False)
73-
# Create default test user, Please change your password in time!!!
73+
# Create default admin user,user name:admin,password:admin,please change it after login!!!
7474
await auth.create_role_user('admin')
7575
await auth.create_role_user('vip')
7676

README.zh.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ site.mount_app(app)
7070
@app.on_event("startup")
7171
async def startup():
7272
await site.db.async_run_sync(SQLModel.metadata.create_all, is_session=False)
73-
# 创建默认测试用户, 请及时修改密码!!!
73+
# 创建默认管理员,用户名: admin,密码: admin, 请及时修改密码!!!
7474
await auth.create_role_user('admin')
75-
await auth.create_role_user('vip')
75+
7676

7777
# 要求: 用户必须登录
7878
@app.get("/auth/get_user")

0 commit comments

Comments
 (0)