Skip to content

feat: rework tfa to display qr code in modals and support easy register / unregister#136

Merged
Lulalaby merged 6 commits intomainfrom
feat/cv2-tfa
Jan 31, 2026
Merged

feat: rework tfa to display qr code in modals and support easy register / unregister#136
Lulalaby merged 6 commits intomainfrom
feat/cv2-tfa

Conversation

@Lulalaby
Copy link
Member

@Lulalaby Lulalaby commented Jan 31, 2026

Example Code:

	[SlashCommand("setup_two_factor", "Setup 2FA")]
	public static async Task SetupTwoFactorAsync(InteractionContext ctx)
		=> await ctx.EnrollTwoFactorAsync();

	[SlashCommand("remove_two_factor", "Remove 2FA"), ApplicationCommandRequireEnrolledTwoFactor]
	public static async Task RemoveTwoFactorAsync(InteractionContext ctx)
		=> await ctx.UnenrollTwoFactorAsync();

easy as that now ^

Example Recording:

Anonymous_2026-01-31.09h39_52_01.mp4

Idea Source:

The idea for displaying the QR in the modal blocktext is from Snazzah (ref: https://canary.discord.com/channels/613425648685547541/1451951249665822780/1466685538886094973)

@Lulalaby Lulalaby requested review from a team and NyuwBot as code owners January 31, 2026 08:44
@Lulalaby Lulalaby self-assigned this Jan 31, 2026
@Lulalaby Lulalaby added the enhancement New feature or request label Jan 31, 2026
@Lulalaby Lulalaby merged commit f30bc61 into main Jan 31, 2026
4 of 5 checks passed
@Lulalaby Lulalaby deleted the feat/cv2-tfa branch January 31, 2026 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies enhancement New feature or request

Development

Successfully merging this pull request may close these issues.

2 participants