- The General/ level is gone: its 109 files moved up into the folders of the same name, and its topic table is the "Shared topics" section of Features.md. - Accessibility is one folder, docs/Features/Accessibility/, with the Admin Panel's accessibility page in it. - Every folder's main page is README.md (110 X/X.md pages renamed with git mv, five merged with an existing README.md, 26 index pages added for folders that had none), so a folder opened on GitHub shows its page. - The 73 "# Moved" forwarding pages are deleted, with the folders that held only them; every link that went to one goes to its final page. - docs/Features/README.md has the website's "Features in WeKan" overview, each feature linking to its page here. 1,129 Markdown links in 262 files and 352 doc paths in code, tests, compose, snap and release files follow. tests/docsFeaturesLayout.test.cjs fails when General/ or a "# Moved" page comes back, a folder has no README.md, or a relative link in the docs or README.md does not resolve. Thanks to xet7 !
7.6 KiB
Adding users
What it is
WeKan users are added either by letting people register themselves at the sign-up page, or, when self-registration is turned off, by an administrator inviting them by email to chosen boards. The very first account registered on a new WeKan becomes the administrator; everybody after that is a normal user until an admin makes them admin in the Admin Panel. Users can also come from LDAP, OAuth2/OIDC, CAS, SAML or header login, which create the account at the first login.
Read more
There is no outside article about this; it is WeKan's own account handling. Related WeKan pages:
- Admin Panel / People / Login (Login: Allow, Invite People)
- Admin Panel / People / People
- Troubleshooting Email
- Forgot password, Impersonate user
How to use it
Standalone WeKan: Snap, (Docker, Source, VirtualBox)
-
Go to your WeKan URL like https://example.com/sign-up (your address + /sign-up)
-
Register your username, email address and password. First registered user will be admin, and next ones normal users. If you want other admins too, you can change their permission to admin at Admin Panel.
-
Working email is not required. WeKan works without setting up email. Older WeKan versions showed "Internal Server Error" when creating an account without email configured, even though the account was created; that is fixed (#5672), and the sign-up now completes. If you really want email sending, do for example:
sudo snap set wekan mail-url='smtps://user:pass@mailserver.example.com:457/' sudo snap set wekan mail-from='Example Wekan Support <support@example.com>'For more options see Troubleshooting Email
-
Login to WeKan at https://example.com/sign-in (your address + /sign-in)
-
Click on top right your username / Admin Panel. In People → People you can change permissions, name, email address and password (the Edit link of a user).
-
For registering other users:
a) Let them self-register, or open webbrowser incognito window, and register them at https://example.com/sign-up (your address + /sign-up)
b) If your email works: Admin Panel → People → Login, and under Login: Allow untick Self-Registration (it used to be Admin Panel / Settings / Registration / Disable self-registration). An Invite People form then appears below: write the Email Addresses, tick the boards under To board(s), and click Invite. Each invited person gets an email with an invitation code, and signs up with it.
Deleting users
- Admin Panel → People → People.
- Click ⋯ beside the user's Edit link.
- Use Delete (or Anonymize account) in the popup and confirm.
Users can delete their own account only when Self delete user account is ticked under Login: Allow. The old note here said there is no delete feature yet; there is one now.
How the numbers are calculated
- First user is admin: when an account is created, WeKan checks whether
any account exists already; the first one gets
isAdmin: true(server/models/users.js,onCreateUser). Only existence is checked, not a count of all users. - Invitation code: an invitation carries a 128-bit random code (22 or more base64url characters); a shorter, older code is refused at sign-up and replaced when the person is invited again (models/lib/invitationCodeEmail.js).
- Sign-up rate: at most 10 sign-up attempts (
ATCreateUserServer) per 60 seconds per client address, aDDPRateLimiterrule in server/models/users.js; a refusal is recorded by server/lib/authRateLimitDecision.js.
How it works in WeKan
- The sign-in and sign-up forms are the useraccounts templates in
userFormsLayout(client/components/main/layouts.jade); the routes/sign-up,/sign-in,/forgot-passwordare configured in config/accounts.js./sign-upis only configured while registration is allowed. disableRegistrationin thesettingscollection is the Self-Registration checkbox, stored inverted; the client asksisDisableRegistrationand hides the sign-up link with aregistration-disabledclass on<body>, which survives the form re-rendering after a failed login (#4394).- With registration off, the server still refuses an account created without a valid invitation code, through the sign-up form, DDP or the REST API (SignupBleed, InviteBleed), and records the attempt in Admin Panel / Problems.
- The Invite People form sends
sendInvitation, which checks that the admin may grant each chosen board before mailing the code. - Tests: tests/signupFirstUser.test.cjs, tests/registrationInvitationCodeGuard.test.cjs, tests/restRegisterRespectsSetting.test.cjs, tests/signupBleedDdp.test.cjs, tests/playwright/specs/signup-bleed-ddp.e2e.js, tests/playwright/specs/password-min-length-signup-login.e2e.js.
Commits
- InviteBleed: old six-digit invitation codes refused, and sign-up throttled
- Invite via Email adds the invited new user, not the first user of the database
- SignupBleed: guard the sign-up form's own method, and keep ordinary sign-up working
- A client sign-up cannot claim admin or LDAP creation
- Authorize every board grant before sending registration invitations
- Registration no longer scans all users
- SignupBleed: with registration disabled the REST API no longer creates accounts
- Admin Panel / People / Login: one "Login: Allow" group of checkboxes
- Login and E-mail move from Admin Panel / Settings to People
- Register / Forgot Password links stay hidden after a failed login
- No "Internal Server Error" when signing up without working email
- Fixed Disable Self-Registration, and added Disable Forgot Password
