Files
wekan/docs/Features/Login-Page/Two-Factor-Authentication.md
T
Lauri Ojansivu b7589737f5 File docs/Features the way the WeKan menus are.
A feature's guide now sits under the menu it is used from, read from the
templates rather than from where somebody once put it: Header-Bar,
All-Boards, Pages, Board-Header (search and every Board View), Board-Sidebar
(Board Settings, Filter, Members, Labels, Archive), Rules, Swimlanes, Lists,
Cards, Member-Settings, Admin-Panel and Login-Page. Topics used from several
menus (editor, history, theme, translations, email, troubleshooting) are in
General.

- Each area has a README mapping its menu entries to their guides and to the
  template or server module that implements them. Board-Header/README.md
  lists all 40 Board View entries with the template boardBody.jade renders;
  five views (Table, Calendar Mode, Time, Timeline, Map) have no guide of
  their own yet and say so.
- Board-View.md listed 25 views while BOARD_VIEWS has 40; it now lists all
  of them with their English labels.
- Pages keep their file names. Where a released changelog links an old path,
  a "# Moved" page stays there and points to the new one; test-menu.sh skips
  folders holding only those.
- Undo was filed under Login; it is General/Undo now.
- Every link in docs, code comments, scripts and tests follows the move;
  docsLinksResolve checks them all.

Tests that read a doc follow it to its new place. boardViewSettings now fails
when Board-View.md or Board-Header/README.md differs from BOARD_VIEWS, or
names a template boardBody.jade does not render.

Thanks to xet7 !
2026-10-16 23:45:35 +03:00

63 lines
2.6 KiB
Markdown

# Two-Factor Authentication (TOTP)
Opt-in per-user two-factor authentication (TOTP - the same standard used by
Google Authenticator, Authy, etc.), added for
[#3058](https://github.com/wekan/wekan/issues/3058). It is built on
Meteor's official `accounts-2fa` package - WeKan only draws the QR code and
enable/disable buttons; the secret generation and code verification is done
by Meteor itself.
## Where to find it
Click your **avatar/name (top left) → Two-Factor Authentication**, in the
member menu.
```
┌ (your avatar) ▾ ─────────────┐
│ Change Settings │
│ Change Color │
│ Notifications │
│ Change Font │
│ Change Avatar │
│ Change Password │
│ ▸ Two-Factor Authentication │ <- here
│ Change Language │
└─────────────────────────────────┘
┌ Two-Factor Authentication ───────────┐
│ Scan this QR code with your │
│ authenticator app: │
│ ┌───────────┐ │
│ │ ▓▓ ▓ ▓▓ │ │
│ │ ▓ ▓▓▓▓ ▓ │ or enter manually: │
│ │ ▓▓ ▓ ▓▓ │ ABCD-EFGH-1234 │
│ └───────────┘ │
│ Code: [______] [Confirm] [Cancel] │
└─────────────────────────────────────────┘
```
## Steps to use it
1. Open your member menu and click **Two-Factor Authentication**.
2. Click **Enable** to start activation.
3. Scan the shown QR code with an authenticator app (Google Authenticator,
Authy, etc.), or type the manual-entry secret shown under it into the app
by hand.
4. Enter the 6-digit code the app now generates into the confirm field and
submit.
5. Once confirmed, the popup shows "Two-Factor Authentication enabled" and a
**Disable** button; from then on, logging in also asks for a 6-digit code.
## Prerequisites
- An authenticator app on a phone/device able to scan a QR code or accept a
manual TOTP secret.
- Not available when logged in via Sandstorm or via an OAuth2 provider
(Google/Azure/OIDC/etc. logins manage their own second factor, if any) -
the menu entry only appears for password-based accounts.
## Integration tests
See [local login protocol tests](Testing.md) for example identities, actual
request/response checks, failure cases and deployment limitations.