include ../../templates/mixins

+settings-section('information', 'Information')
  include ../../components/information/index

+settings-section('password', 'Password')
  include ../../components/password/index

if user.get('roles').includes('team')
  +settings-section('two-factor-authentication', '')
    #stitch-two-factor-authentication
      != stitch.components.TwoFactorAuthentication({ mountId: 'stitch-two-factor-authentication' })

+settings-section('linked-accounts', 'Linked Accounts')
  include ../../components/linked_accounts/index

+settings-section('email-preferences', 'Email Preferences')
  include ../../components/email_preferences/index

.settings-section
  .settings-section__main
    a.settings-disable-link.garamond-button-text( href='/user/delete' )
      | Delete Account

include ../../templates/mixins

+settings-section('information', 'Information')
  include ../../components/information/index

+settings-section('password', 'Password')
  include ../../components/password/index

if user.get('roles').includes('team') || user.get('lab_features').includes('2FA')
  +settings-section('two-factor-authentication', '')
    #stitch-two-factor-authentication
      != stitch.components.TwoFactorAuthentication({ mountId: 'stitch-two-factor-authentication' })

+settings-section('linked-accounts', 'Linked Accounts')
  include ../../components/linked_accounts/index

+settings-section('email-preferences', 'Email Preferences')
  include ../../components/email_preferences/index

.settings-section
  .settings-section__main
    a.settings-disable-link.garamond-button-text( href='/user/delete' )
      | Delete Account

Add lab feature to reveal 2FA enrollment UI
Add lab feature to reveal 2FA enrollment UI

Having a lab feature to enable for any user account will help us QA in
advance of launch milestones.
