Merged in feature/eula.part1 (pull request #206)
eula support * eula support * docs
This commit is contained in:
@@ -36,9 +36,10 @@ func getAdminUserForAudit(ctx echo.Context) (cognitoauth.UserInfo, error) {
|
||||
}
|
||||
|
||||
// If auth is disabled, use a default system user for audit logging
|
||||
// Note: Email must be a valid format (with TLD) to pass openapi_types.Email validation
|
||||
if os.Getenv("DISABLE_AUTH") == "true" {
|
||||
return cognitoauth.UserInfo{
|
||||
Email: "system@localhost",
|
||||
Email: "system@test.local",
|
||||
Username: "system",
|
||||
Groups: []string{"admin"},
|
||||
}, nil
|
||||
|
||||
Reference in New Issue
Block a user