Skip to content

messagix/bloks: allow choosing a different mfa type - #340

Merged
radon-at-beeper merged 5 commits into
mainfrom
rr-mfa-back
Aug 31, 2026
Merged

messagix/bloks: allow choosing a different mfa type#340
radon-at-beeper merged 5 commits into
mainfrom
rr-mfa-back

Conversation

@radon-at-beeper

@radon-at-beeper radon-at-beeper commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

This implements the interface defined in mautrix/go#560 to allow canceling the MFA step after selecting an MFA method, and having that return the user to the MFA selection screen to choose a different method. The option to go back is only presented if there is at least one other supported MFA method to select.

On clients that don't support mautrix/go#560, there is no change in behavior.

@radon-at-beeper
radon-at-beeper requested a review from tulir August 31, 2026 16:00
Comment thread pkg/messagix/bloks/selenium.go Outdated
case <-timer.C:
case <-ctx.Done():
if !timer.Stop() {
<-timer.C

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is no longer needed as of Go 1.23 https://go.dev/wiki/Go123Timer, just use a plain time.After in the select

@radon-at-beeper
radon-at-beeper merged commit 379ff76 into main Aug 31, 2026
11 checks passed
@radon-at-beeper
radon-at-beeper deleted the rr-mfa-back branch August 31, 2026 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants