Managing users

An administrator creates the accounts and resets passwords. That can be done in the app, and also from the server when you can no longer get into the app.

How accounts work

In the app

Click your name at the bottom of the sidebar, choose Account, password and devices and then User management. That button is only there when you are an administrator.

The User management window with the list Accounts: Anna (admin), Bram, Joost, Grandpa Kees, Mila and Sanne, each with a Manage button. Below it the collapsible part New account.
User management: all accounts on the server, and below them the form for a new account.

Creating an account

  1. Open New account.
  2. Fill in a username, a name and an initial password. Tick Admin if this account may manage accounts as well.
  3. Choose Create account and pass the username and the initial password on to the person. They can change the password themselves afterwards.

Managing an account

Choose Manage next to an account:

Reset password
You set a new password. The person is signed out on all devices and signs in again with the new password.
Block account
The person can no longer sign in and is signed out everywhere immediately. The data is kept, and tasks in shared projects stay. Devices registered for notifications get no more. Reactivate account reverses it.
Make admin or Remove admin rights
Turns an ordinary user into an administrator, or the other way round.
Turn off two-step verification
Only for an account with two-step verification (the label 2-step). For someone who lost both the phone and the recovery codes: afterwards they sign in with just the password and can turn it on again. Only do this when you are sure it really is that person asking. It is written to the server log.

Downloading a backup

Under Backup you download a copy of the whole server as one file; see Backup.

You cannot block yourself or take away your own administrator rights. Deleting an account completely is not possible either; blocking is the alternative.

From the server

The same actions as commands, for example when you have lost the password of the only administrator. Run them in the directory with docker-compose.yml, while the container is running.

docker compose exec tickory node server/main.ts user list
docker compose exec -e TODO_PASSWORD='a-good-password' tickory node server/main.ts user add anna --name "Anna de Vries"
docker compose exec -it tickory node server/main.ts user passwd anna        # asks for the password, hidden
docker compose exec tickory node server/main.ts user disable anna
docker compose exec tickory node server/main.ts user enable anna
docker compose exec tickory node server/main.ts user logout-all anna
docker compose exec tickory node server/main.ts user reset-2fa anna
CommandWhat it does
user listShows all accounts: username, name, administrator or user (the command prints these as beheerder and gebruiker), and whether the account is blocked (geblokkeerd).
user add <name>Creates an account. With --name "Full name" you give the name others see, with --admin you create an administrator.
user passwd <name>Sets a new password and signs out all devices of that user.
user disable <name>Blocks the account and signs it out everywhere.
user enable <name>Makes a blocked account active again.
user logout-all <name>Signs out all devices of that user, without changing the password.
user reset-2fa <name>Turns off two-step verification for that user, for example for the only administrator who lost both phone and recovery codes.

Passing the password. user add and user passwd need a password. You give it in one of two ways:

Without TODO_PASSWORD and without -it no password can be asked for, and the command stops with an error. The messages of these commands are in Dutch.

If you run without Docker, leave out docker compose exec tickory: node server/main.ts user list.

Rules for names and passwords

Protection against guessing

Signing in is limited per fifteen minutes: after eight failed attempts on one username from the same address, after forty from the same address (an IPv6 network counts as one address) or after sixty on one username in total, the server refuses further attempts until those fifteen minutes have passed. An attempt is counted before the password is checked, so a hundred attempts at once do not get through. Because the counter for a username is per address, someone else cannot lock you out of your account from their own address. The counters are kept in memory: restarting the server clears them. If the server is busy checking passwords, a sign-in attempt gets “De server is druk” (the server is busy, 503); trying again a moment later helps.

Guessing the current password when changing a password is limited too (five wrong attempts per fifteen minutes). Every user also has limits on what can be stored: for example 10,000 tasks per project, 500 labels, 5,000 reminders and 20 signed-in devices (the longest unused one is signed out at the next sign-in). The full list is in SPEC.md (chapter 4a) and in server/limits.ts; the app tells you when you reach a limit.

If there is a reverse proxy in front of Tickory, set TRUST_PROXY=1. Otherwise all visitors seem to come from the same address (that of the proxy) and one person with many wrong attempts can block signing in for everyone. See HTTPS.