[%# Manage 2fa settings Authors: Mark Smith Copyright (c) 2020 by Dreamwidth Studios, LLC. This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself. For a copy of the license, please reference 'perldoc perlartistic' or 'perldoc perlgpl'. %] [%- sections.title = "Manage Two-Factor Authentication" -%] [%- CALL dw.active_resource_group( "foundation" ) -%]
[%- dw.form_auth -%] [%- form.hidden( name = "mode", value = "submit" ) -%]

Two-factor authentication (2FA) is currently enabled for your account. Hurrah! Your account is much more secure now.

Recovery Codes

[% IF show_codes %]

These are your 2FA recovery codes. Please write these down somewhere secure. You will need these if you lose access to your 2FA device and need to contact support to unlock your account.

Treat these like passwords! These codes will allow someone access to your account, so please be careful with them.

[% FOR code IN codes %] [% code %] [% END %] [% ELSE %]

If you've misplaced your recovery codes, please click this button to see them again.

[% form.submit(name='action:show-codes', value='Show Recovery Codes') %] [% END %]

Disable 2FA

If for some reason you need to temporarily disable two-factor authentication on your account, you can start the process here.

[% form.submit(name='action:disable', value='Disable Two-Factor Authentication') %]