2FA must be enabled system-wide by an administrator under Preferences before users can configure it. When the
two_step_verification preference is Enabled, the 2FA settings appear in your profile.Available methods
- SMS OTP
- Google Authenticator
An SMS one-time password (OTP) is a 6-digit code sent to your registered phone number. The code is generated fresh each time you log in or switch to this method.Requirements:Login flow with SMS OTP enabled:
- A verified phone number must be saved on your account before you can enable this method.
- The platform SMS gateway (e.g. Twilio) must be configured and active by an admin.
Go to 2FA settings
Navigate to your profile and open the Two-Factor Authentication section at
profile/two-fa.Select Phone as your 2FA method
Choose Phone from the method selector. If no phone number is on your account, you are prompted to add one first.The system verifies that your account has a
carrierCode and phone set:Receive and enter the OTP
A 6-digit code is sent to your phone number via SMS. Enter the code in the verification field on screen.The OTP is stored against your account in
user_details.two_step_verification_code until used.- Enter your email/phone and password as usual.
- After successful password check, you are redirected to the 2FA verification screen.
- A new OTP is sent to your phone.
- Enter the code. On success, a
2fakey is placed in the session and you are admitted to the dashboard.
device_logs. On subsequent logins from the same browser, you skip the 2FA prompt.Switching methods
You can switch between SMS OTP and Google Authenticator at any time fromprofile/two-fa. When you select a different method:
- The platform sends a verification challenge using the new method.
- You enter the code to confirm the switch.
user_details.two_step_verification_typeis updated to the newly selected method.
Disabling 2FA
To disable 2FA entirely:- Open
profile/two-fa. - Deselect your current method (set
two_step_verification_typetonullor the disabled state). - Confirm the change.
user_details.two_step_verificationis set to0.
Recovery options
Doss does not currently generate one-time recovery codes. If you lose access to your 2FA method:- SMS OTP: Contact support to update your phone number. An admin can clear the
two_step_verification_typefrom your account. - Google Authenticator: If you lose your device, contact support. An admin can clear the
google2fa_secretfield on your account, which removes the Google Authenticator binding and allows you to set up a new one.
If you are a Doss user (
type = 'doss'), there is a separate 2FA management page at /doss/2fa. The setup and verification flow is the same as described above.