[%# 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 = "Set Up Two-Factor Authentication" -%] [%- CALL dw.active_resource_group( "foundation" ) -%]
[%- dw.form_auth -%] [%- form.hidden( name = "mode", value = "submit" ) -%]
Getting Ready for 2FA

To set up two-factor authentication (2FA), you will need the following:

  1. An authentication application, such as Google Authenticator, which supports scanning QR codes.
    Get it on Google Play Download on the App Store
  2. A secure notepad or way to save your recovery codes. These are important, if you lose your 2FA device these codes are how you will get back in to your account!
Setting Up Your Device
Now scan this QR code in your authentication application:
[%- form.hidden( name='totp_secret', value=totp_secret ) -%] QR code for setting up 2FA
Verify & Enable
Finally, please enter a generated 2FA code from your device:
[% form.textbox(name='verification_code', maxlength='6') %]
[% form.submit(name='action:enable', value='Enable Two-Factor Authentication') %]