Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@andrewpmartinez
Copy link
Member

No description provided.

@andrewpmartinez andrewpmartinez requested a review from a team as a code owner October 15, 2025 12:41

if context.ListenerCount(EventMfaTotpCode) == 0 {
return errors.New("no MFA TOTP code providers have been added via zitiContext.Events().AddMfaTotpCodeListener()")
pfxlog.Logger().Warn("no MFA TOTP code providers have been added via zitiContext.Events().AddMfaTotpCodeListener()")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it didn't make sense to do this after emitting the event below? i assume this change was to still permit the event to be emitted, right? seems like you could do this after that emit and still return the error? just figured i'd ask

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It gunks up assumptions in other places I don't have time to fix now. It was originally a warning error and in my hubris I thought an error would be so much better.

@andrewpmartinez andrewpmartinez merged commit 3ad0fdb into main Oct 15, 2025
13 of 15 checks passed
@andrewpmartinez andrewpmartinez deleted the fix.hard.fail.on.no.totp.handler branch October 15, 2025 13:37
plorenz added a commit that referenced this pull request Oct 28, 2025
plorenz added a commit that referenced this pull request Nov 12, 2025
Fix context id data race. Fixes #824
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants