mirror of
https://github.com/wekan/wekan.git
synced 2026-11-25 04:49:41 -05:00
- 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 !
4.8 KiB
4.8 KiB
Admin Panel / Problems / Offices
What it is
Successful login counts by person and address. Each person's addresses stay together, so an administrator can see where each account signs in from, and which addresses several accounts share. A shared address may represent an office, VPN or NAT; it is not proof that accounts are one person. WeKan does not block addresses for this reason: blocking one shared address would lock out everybody behind it.
Read more
- Network address translation and Virtual private network - why many people can share one address.
- IPv6 - the second address family shown.
- Internet geolocation - why an address alone cannot establish someone's precise physical location.
- WeKan: Problems, account lockout, People.
How to use it
- Sign in as a site administrator and open Admin Panel → Problems →
Offices (
/admin/problems/office). - Read one person at a time, with a row per address: IPv4, IPv6, first and last login times, the number of logins and location information when available.
- Type a username, full name, address or location in the search box and press Enter to find people.
- Use the previous/next page buttons for more people.
How the numbers are calculated
From models/lib/loginTally.js and server/methods/loginOffices.js:
- Logins - each successful login adds 1 to the account's count for that address and to the address's count for that account, and sets the last login time; the first login time is set once.
- Per account, at most 50 addresses are listed
(
MAX_ADDRESSES_PER_USER), and per address at most 200 accounts (MAX_USERS_PER_ADDRESS); the rest are counted as an overflow ("more addresses") rather than listed. - Shared address - one that at least 3 different accounts have logged in
from (
SHARED_ADDRESS_MIN_USERS). - An IPv4 address written as IPv6 (
::ffff:203.0.113.9) is counted as the IPv4 address it is. - Addresses are sorted by count, most first.
- Paging - 25 people a page (
OFFICES_PER_PAGEin client/components/settings/adminProblems.js); the server accepts 1 to 200, sorted by username.
How it works in WeKan
- Every successful login is folded into the account's
loginAddressestally and into theLoginAddressescollection (models/loginAddresses.js) by server/loginTallyOnLogin.js and server/lib/loginTally.js. The tally keys are short SHA-256 hashes, because an address or a username cannot be a Mongo field name. - The
loginOfficesmethod returns the people first, with all of each person's addresses kept together;loginOffice(address)returns one address in full. Both refuse anybody who is notisAdmin. - Location information comes from the configured trusted proxy/CDN headers (models/lib/geoHeaders.js). Missing information remains unknown. An IPv4/IPv6 pair is only shown when the server has evidence linking the addresses; an address alone cannot establish someone's precise physical location.
- This is an administrator report of locally recorded login activity. Its implementation does not require sending login addresses to an external geolocation service.
- Tests: tests/officesGroupedByPerson.test.cjs and tests/playwright/specs/admin-office-location.e2e.js.
Commits
- Location shown in the address reports
- Restore the legacy Offices login history
- Country login locations, shared with Admin Panel / People
- Available initials in the Offices people column
- Login addresses grouped by person
- Admin Panel / Problems / Offices: where people log in from, grouped
- Who logs in from where, with users shown as initials or avatar