Signing in¶
You sign in to JAI Tool with your email address and password, and with a code from your phone if two-factor sign-in is on. Everyone with an account uses the same sign-in page; what you see afterwards depends on your role and permissions.
Sign in¶
- Open JAI Tool's address. If you are not signed in, the sign-in page opens.
- Enter your Email and Password.
- Turn on Remember me if you want to stay signed in.
- Click Sign in.
JAI Tool then opens the page you were trying to reach, or the Overview.
| Field | What it does |
|---|---|
| The address your account was created with. | |
| Password | Your password. A new account has none until you set it from a link; see Set a password from a link. |
| Remember me | Off: you are signed out when you close the browser. On: you stay signed in for 30 days, renewed while you keep using JAI Tool. |
| Message | What it means |
|---|---|
| Wrong email or password | The email and password do not match an account. Each try counts toward the lockout. |
| Account is disabled | The password is right, but an admin has disabled the account. Ask an admin. |
| Locked out for 15 minutes | Too many wrong tries; see Lockout. |
Before the first-run setup is done, the sign-in page sends you to the setup wizard.
On a phone, the phone app has its own sign-in page with the same fields. A phone can also be signed in without a password by scanning an Open on phone QR code; see Phone app.
Two-factor code¶
JAI Tool asks for a code after your password when Two-factor authentication in System settings is Required, or when it is Optional and you turned it on with Add 2FA on the Security tab of your User settings. The codes come from an authenticator app on your phone, under "JAI Tool" and your email.
- Sign in with your email and password as usual.
- Open your authenticator app and find the JAI Tool entry.
- Type its six-digit code into Code; spaces are ignored.
- Click Sign in.
You have 10 minutes after the password to enter the code. After that, JAI Tool shows "Sign-in expired" and you start again. Each code works once: a code already used, or a wrong one, shows "Wrong or used code". The code just before or after the current one also works, to allow for a phone clock that is slightly off. Wrong codes count toward the lockout, like wrong passwords. Click Back to sign in to start over.
Setting it up at sign-in¶
When two-factor authentication is Required and you have not set it up yet, the code page shows a QR code first.
- In your authenticator app, add an account by scanning the QR code. If you cannot scan it, click Copy key and add the key by hand. Where the browser cannot copy, the key shows in a box instead.
- Enter the six-digit code the app now shows into Code.
- Click Sign in.
From then on, every sign-in asks for a code.
Lost your phone?
Ask an admin to click Remove 2FA on the Actions tab of your account in User management. You are signed out everywhere, and set it up again at your next sign-in if it is Required. If you are the only admin, the server's administrator can reset it with a command; see Reset two-factor sign-in.
Lockout¶
To stop password guessing, JAI Tool locks an account after too many wrong tries:
- 5 wrong tries for one account from one network address lock that account, from that address, for 15 minutes.
- 15 wrong tries for one account from all addresses together lock it everywhere.
Wrong two-factor codes count too. While the account is locked, every sign-in shows "Locked out for 15 minutes", even with the right password, and each new try starts the 15 minutes again. A successful sign-in clears the count of wrong tries.
A lockout ends when:
- 15 minutes pass without another try;
- an admin clicks Unlock on the account's Actions tab in User management;
- you set a new password from a link; see Forgot password and Set a password from a link.
Behind a reverse proxy
If JAI Tool runs behind a reverse proxy without TRUSTED_PROXY set, every visitor seems to come from the proxy's address, so 5 wrong tries lock that account for everyone.
See HTTPS behind a reverse proxy.
Forgot password¶
The sign-in page shows Forgot password? only when email is enabled in System settings. Without email, ask an admin for a link instead; see Set a password from a link.
- On the sign-in page, click Forgot password?.
- Enter your Email.
- Click Send link.
- Back on the sign-in page, JAI Tool shows "Link sent, if the account exists".
- Open the email "Set a new JAI Tool password" and follow the link within 15 minutes.
The page answers the same whether an account uses the address or not, so it reveals nothing about who has an account. A disabled account gets no email. JAI Tool sends at most 3 such emails per account per hour, and accepts at most 10 requests per network address per hour; past that, nothing is sent. Back to sign in returns to the sign-in page.
Set a password from a link¶
A new account has no password; its owner sets one from a link. You get a link in one of these ways:
- the email "Your JAI Tool account", sent when an admin creates your account and email is enabled;
- the email "Set a new JAI Tool password", after you use Forgot password;
- a link an admin made with Create link on your account's Actions tab in User management and passed on to you.
To set your password:
- Open the link.
- Enter the new password in Password and again in Repeat password.
- Click Set password.
The password needs at least 8 characters, must not be too similar to your name or email, must not be a common password, and must not be only digits.
JAI Tool then shows "Password set", signs you in and opens the Overview. If two-factor sign-in applies to you, it asks for the code first. Setting a password also ends a lockout of your account. A disabled account gets its new password, but is not signed in.
A link works for 15 minutes, and only until it is used, you sign in, or your password changes. An old link shows "The link has expired." with a Sign in button; ask for a new one.
Sign out¶
Click Logout at the bottom of the sidebar. If your sidebar is compact, point at the More button there first to show it. In the phone app, tap Logout on the home screen.
JAI Tool returns you to the sign-in page.
You are also signed out:
- when you close the browser, if you signed in without Remember me;
- when an admin disables your account or removes your two-factor setup;
- when the server's
SECRET_KEYchanges.
