Skip to content

Getting back in

Forgot your password? Forgot your username? Lost the phone that gives you sign-in codes? This page gets you back in. It takes about two minutes, and you do not need to know anything about computers beyond copy and paste.

Biryar runs on your own computer, not on ours. We do not hold your account, your password or your email address, so we cannot send you a reset link, and neither can anyone else. What proves the account is yours is simpler: you are sitting at the computer Biryar runs on.

If someone else looks after Biryar for your business, ask them to follow this page for you. It works for any account on that computer.

1. Go to the computer Biryar runs on. That is the one where it was installed, which may not be the one you usually open it from.

2. Make sure Docker is running. On Windows and Mac, open Docker Desktop and wait until it says it is running. On Linux it already is.

3. Open a terminal. This is a window you type commands into.

  • Windows: press the Windows key, type PowerShell, press Enter.
  • Mac: press Command and Space together, type Terminal, press Enter.
  • Linux: press Ctrl, Alt and T together.

It does not matter which folder the terminal opens in.

4. Copy this line, paste it into the terminal, and press Enter.

docker exec -it biryar-api-1 biryar-password

Paste it exactly as it is. There is nothing in it to change.

5. Answer its questions. It asks at most three, described below. Nothing is changed until you have answered all of them, so you can close the window at any point and your account stays as it was.

6. Open Biryar and sign in. The last line it prints tells you which name to sign in with.

Here is what a whole run looks like. What you type is marked.

Getting back into Biryar. Nothing is changed until every question is answered.
The accounts on this machine:
1. anna anna@example.com owner
2. david david@example.com assistant
Which one is yours? Type its number, its username or its email: 1 <- you
What do you need?
1. A new password
2. A new phone: mine is lost or replaced, so set up the sign-in code again
3. Both
Type 1, 2 or 3, then Enter (Enter alone means 1): 1 <- you
Choose a new password, type it and press Enter. Nothing shows while you type.
It needs at least 12 characters, with at least one that is not a letter or a digit
and at least one capital letter or digit.
Or press Enter on its own, and one is made for you.
New password: <- you
The same again: <- you
Password set for anna@example.com (Anna, owner).
Now open Biryar and sign in as anna with your new password.

Which account is yours. You do not have to remember your username. The accounts on the computer are shown first, each with its username and its email. Type the number in front of yours, or its username, or its email: all three work. If there is only one account, it shows that one and you just press Enter.

What you need. This is only asked if your account uses sign-in codes from a phone. Choose 1 for a forgotten password, 2 for a lost or replaced phone, 3 for both.

Your new password. You have two choices:

  • Choose your own. Type it and press Enter, then type it once more. Nothing appears on the screen while you type, not even dots. That is normal: it keeps the password from being read over your shoulder. It needs at least 12 characters, with at least one that is not a letter or a digit (a comma or a dash, for example) and at least one capital letter or digit. If it is too weak, or the two did not match, you are simply asked again.
  • Have one made for you. Press Enter without typing anything. A strong password is shown on the screen, once. Write it down or put it in your password manager before you close the window, because it cannot be shown again.

Step 5 shows it to you. You also do not need it to sign in: the sign-in box takes your username or your email address, whichever you remember.

Follow the steps above and choose 2, or 3 if you want a new password as well. Biryar forgets the old phone and signs you out everywhere. The next time you sign in, it shows a new code to scan with the authenticator app on your new phone, exactly as it did the first time.

The terminal says What it means What to do
No such container: biryar-api-1 Biryar is not running, or runs under another name. Type docker ps and press Enter. If a name ending in api-1 is listed, use that name in place of biryar-api-1. If nothing is listed, Biryar is not running: see after the machine restarts.
Cannot connect to the Docker daemon or error during connect Docker is not running. Open Docker Desktop, wait until it says it is running, and try again.
the input device is not a TTY This kind of terminal cannot answer questions. On Windows use PowerShell, not Git Bash.
biryar-password: not found This copy of Biryar is older than the command. Update Biryar, then try again. Or use the longer line below.

The longer line, for an older copy. Here you do have to change something: replace <your username or email>, including the two angle brackets, with your own. It makes a new password for you and shows it once.

docker exec -it biryar-api-1 python -m biryar.passwd --login <your username or email>

For example, for the username anna:

docker exec -it biryar-api-1 python -m biryar.passwd --login anna

Docker Desktop can do the same from its own window.

  1. Open Docker Desktop and click Containers on the left.
  2. Click biryar to open it, then click the line that ends in api-1.
  3. Click the Exec tab. A small terminal opens inside it.
  4. Type biryar-password, press Enter, and answer the questions as above.

Yes, and it adds no new way in. Anyone who can sit at the computer and run this line could already read everything Biryar stores there. So the thing to protect is the computer itself: give it a password of its own, and do not leave it unlocked where others can reach it.

The same command takes its answers as options, and then asks nothing:

Option What it does
--login NAME Whose account, by username or email.
--ask Ask for the password instead of making one.
--reset-two-factor Forget the phone. The password is left alone unless --ask or --new-password is also given.
--new-password With --reset-two-factor, also make a new password.
--tenant SLUG Which business, on an installation that holds more than one.