mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 09:59:47 -05:00
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 !
68 lines
3.1 KiB
Markdown
68 lines
3.1 KiB
Markdown
## Passwordless login: a one-time code by email
|
|
|
|
Meteor's `accounts-passwordless` package lets a user sign in with a code that
|
|
WeKan emails them, instead of a password. WeKan wires it in behind one switch:
|
|
|
|
| Variable | Meaning |
|
|
| --- | --- |
|
|
| `PASSWORDLESS_ENABLED` | `true` adds "Sign in with a code sent by email" to the login page. Default `false`. |
|
|
|
|
It needs WeKan to be able to send email, so `MAIL_URL` (or the Admin Panel /
|
|
People / Email settings) must work first - test with a "forgot password"
|
|
email before enabling this. It can be overridden in Admin Panel / People /
|
|
Login, and a value set there wins over the environment variable.
|
|
|
|
```
|
|
browser WeKan mail server
|
|
| email address | |
|
|
|----------------------------->| 6-digit code, valid for a |
|
|
| | few minutes, sent to that |
|
|
| | address |
|
|
| |----------------------------->|
|
|
| user reads the code | |
|
|
| in their inbox | |
|
|
| types the code | |
|
|
|----------------------------->| code matches and is not |
|
|
| | expired: log in |
|
|
| logged in | |
|
|
|<-----------------------------| |
|
|
```
|
|
|
|
## What it does and does not do
|
|
|
|
- An existing WeKan user with that email logs in as themselves; no password
|
|
is asked and no password is set or changed.
|
|
- An unknown email creates a new user, subject to the registration rules in
|
|
Admin Panel / People / Registration: with invite-only registration the code
|
|
is not sent and the login is refused, exactly like a password sign-up.
|
|
- The code is single-use and short-lived. Asking for a new one invalidates the
|
|
old one.
|
|
- The email is a login factor, so this is only as strong as the user's mailbox.
|
|
It is a convenience for people who forget passwords, not a second factor;
|
|
for that see [Two-Factor Authentication](Two-Factor-Authentication.md).
|
|
- Brute-forcing the code is covered by the same
|
|
[Accounts Lockout](Accounts-Lockout.md) that guards password logins.
|
|
|
|
## Where it is configured
|
|
|
|
`PASSWORDLESS_ENABLED` is commented out, with the explanation above, in
|
|
`docker-compose.yml` (and the FerretDB / MongoDB variants), `Dockerfile`,
|
|
`start-wekan.sh`, `start-wekan.bat`, the Snap
|
|
(`snap set wekan passwordless-enabled='true'`) and the Sandstorm package
|
|
definition.
|
|
|
|
To have only passwordless and the social providers, and no password form at
|
|
all, also set `PASSWORD_LOGIN_ENABLED=false`
|
|
([Disable Password Login](Disable-Password-Login.md)).
|
|
|
|
## Related
|
|
|
|
- [OAuth Providers](OAuth-Providers.md): Google, GitHub, Facebook, Twitter,
|
|
Meteor Developer, Weibo, Meetup
|
|
- [Forgot Password](Forgot-Password.md), which uses the same outgoing email
|
|
|
|
## Integration tests
|
|
|
|
See [local login protocol tests](Testing.md) for example identities, actual
|
|
request/response checks, failure cases and deployment limitations.
|