Merged in bug/eula-email (pull request #212)
fix eula issue when email not present in jwt * bug fix
This commit is contained in:
@@ -36,7 +36,6 @@ 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@test.local",
|
||||
|
||||
Reference in New Issue
Block a user