Skip to Content

Account Security

The options on this page are under Account (side menu), in the Profile tab (My account page), Security section.

Two-Factor Authentication (2FA)

2FA adds an extra layer of security to your login.

On Zenifra, 2FA uses an authenticator (TOTP) app. With 2FA enabled, the code for sign-in, password change, password recovery, and account deletion comes from the app. Without 2FA, sign-in, password changes, and account deletion are confirmed with a code sent to your email.

Enable 2FA

Enabling has two steps: you confirm your password, scan the QR code, and only then confirm with a code from the app.

  1. Go to Account > Security section
  2. Click Enable 2FA, enter your Current password, and click OK
  3. In Set up 2FA, scan the QR code with your authenticator app
  4. Enter the 6-digit code shown by the app in Authenticator app code
  5. Click Confirm activation

Important: 2FA only takes effect after Confirm activation. If you close the window before that, 2FA stays disabled and the started setup expires in 10 minutes; to enable it, start again. There are no 2FA backup codes; if you lose access to the app, email [email protected].

Compatible apps

  • Google Authenticator
  • Authy
  • Microsoft Authenticator
  • 1Password
  • any compatible TOTP app

Disable 2FA

  1. Go to Account > Security section
  2. Click Disable 2FA
  3. Enter your Current password and the current TOTP code from your app
  4. Click Disable 2FA to confirm

Single-use codes and attempt limit

  • Each authenticator app code is valid only once. After it is used (at sign-in, when enabling or disabling 2FA, when changing or recovering your password, or when deleting the account), the same code is rejected; wait for the app to generate the next one, which happens every 30 seconds.
  • After 10 invalid codes within one hour, new verifications for the account are blocked until that one-hour window ends, counted from the first failure. A correct code before reaching the limit resets the count.
  • Codes sent by email follow the same limit of 10 failures per hour, counted separately for each purpose (sign-in, email verification, password change, and account deletion).

Password Change

How to change it

  1. Go to Account > Security section
  2. Enter the Current password
  3. Set the New password (12 to 64 characters, with an uppercase letter, a lowercase letter, a number, and a special character)
  4. Repeat it in Confirm new password
  5. Enter the code:
    • with 2FA enabled, the TOTP code from the app
    • without 2FA, first click Change password: a code is sent to your email; enter it in Verification code
  6. Click Change password

The current password is checked before the code. After the change, all account sessions and connected integrations are ended and you must sign in again.

Sign-in history

The Sign-in history section shows sign-ins and attempts from the last 7 days, with date and time, origin, and status (success or failure).

Security Notifications

See Account Settings to manage account notification preferences, such as Sign-in notifications and Password change.

Sessions

  • Sign out ends only the session in the browser where you clicked it; sessions open on other devices stay active.
  • Changing or resetting your password ends all account sessions and disconnects the integrations authorized in Connected integrations, such as the CLI connected through the browser and Zenifra MCP.
  • Through the API, DELETE /v1/authentication ends the current session and DELETE /v1/authentication?scope=all ends every session and authorized connection of the account. Any other scope value is rejected with 400.

If you suspect unauthorized access, change your password: that is how you end all sessions from the console.

API reference

All routes below require an authenticated session and live under https://api.zenifra.com/v1.

ActionRequestSuccess response
Start enabling 2FAPOST /authentication/2fa with { "current_password": "..." }200 with data.qr_code, data.secret, and data.requires_confirmation: true
Confirm 2FA activationPOST /authentication/2fa with { "code": "123456" }200 (2FA enabled with success)
Disable 2FADELETE /authentication/2fa with { "current_password": "...", "code": "123456" }200 (2FA disabled successfully)
Sign out of this sessionDELETE /authentication200 (logged out successfully)
Sign out of all sessionsDELETE /authentication?scope=all200 (logged out successfully)

Send current_password or code in each POST /authentication/2fa call, never both. The confirmation step must happen within 10 minutes of starting.

StatusMessage or codeWhen it happens
400current password does not matchWrong current password when starting activation or disabling
4002FA not enabled for this userAttempt to disable while 2FA is off
401invalid TOTP code providedInvalid or already used code
409user already have totpAttempt to enable while 2FA is already on
4092FA setup expiredConfirmation without a started activation or after 10 minutes
429challenge_attempts_exceededLimit of 10 invalid codes per hour reached

Features not currently available

These features are not currently available in the console:

  • 2FA backup codes
  • list of active sessions or connected devices
  • ending one specific session on another device
  • a button to sign out of all sessions

Next steps

Last updated on

On this page