fix: default user
This commit is contained in:
@@ -24,29 +24,11 @@ depends_on: str | Sequence[str] | None = None
|
||||
DISABLED_PASSWORD = "demo-login-disabled"
|
||||
SEEDED_USERS = (
|
||||
(
|
||||
"0000000000RF6FG1SDBXG59S13",
|
||||
"admin-zhang",
|
||||
"张三",
|
||||
"00000000000000000000000001",
|
||||
"admin",
|
||||
"Admin",
|
||||
"0000000000000000000000000A",
|
||||
),
|
||||
(
|
||||
"0000000000H2QYCGPCWQM1JSGS",
|
||||
"admin-li",
|
||||
"李四",
|
||||
"0000000000000000000000000A",
|
||||
),
|
||||
(
|
||||
"0000000000RWG40ESZPGJT629J",
|
||||
"dev-wang",
|
||||
"王五",
|
||||
"0000000000000000000000000B",
|
||||
),
|
||||
(
|
||||
"00000000004CQV7WASJA6N6FW4",
|
||||
"dev-zhao",
|
||||
"赵六",
|
||||
"0000000000000000000000000B",
|
||||
),
|
||||
)
|
||||
|
||||
|
||||
@@ -149,7 +131,7 @@ def upgrade() -> None:
|
||||
|
||||
connection.execute(
|
||||
users.update()
|
||||
.where(users.c.username == "admin-zhang")
|
||||
.where(users.c.username == "admin")
|
||||
.values(status="active")
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user