Get rid of hardcoded admin user uuid

The UUID is generated by `ocs init` now and stored in the config file.
To avoid that every ocis install uses the same UUID

Closes: #3524
This commit is contained in:
Ralf Haferkamp
2022-05-04 12:42:28 +02:00
committed by Ralf Haferkamp
parent c312ecf926
commit 7ef205d232
17 changed files with 52 additions and 14 deletions
@@ -41,5 +41,9 @@ func Validate(cfg *config.Config) error {
return shared.MissingMachineAuthApiKeyError(cfg.Service.Name)
}
if cfg.AdminUserID == "" {
return shared.MissingAdminUserID(cfg.Service.Name)
}
return nil
}