mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-11-08 01:33:43 +08:00
feat: able to set initial quota for new user (close #22)
This commit is contained in:
@@ -25,6 +25,7 @@ func createRootAccountIfNeed() error {
|
||||
Role: common.RoleRootUser,
|
||||
Status: common.UserStatusEnabled,
|
||||
DisplayName: "Root User",
|
||||
AccessToken: common.GetUUID(),
|
||||
}
|
||||
DB.Create(&rootUser)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user