Account and team
How to switch on two-factor sign-in
For administrators and every user: add an authenticator app, scan the code under Password and two-factor, confirm with a 6-digit code, and move scripts from HTTP Basic to API tokens.
Ashish Srivastava4 min read

To switch on two-factor authentication for your GPS tracking account, install an authenticator app on your phone, open Settings → Your account → Password and two-factor, scan the code shown under Two-factor login, and enter the 6-digit code from the app to turn it on. From then on every password sign-in asks for your password and a code from your phone. This guide is for administrators and for any user who wants that second step; it ends with what changes for scripts that call the API.
Before you start
- An authenticator app on your phone that makes 6-digit time-based codes (any of the common ones do).
- The portal open over https: the code is checked in your browser before it is saved.
- The clock on your phone set automatically: codes depend on the time.
1. Install an authenticator app
Install an authenticator app from your phone's app store if you don't use one yet. You need nothing else: no account at the app's maker and no mobile data at sign-in, because the codes are made on the phone itself.
2. Open your account settings and start the setup
In the portal, open Settings → Your account → Password and two-factor. The card Two-factor login shows Off, with the setup panel below it. If the card is missing, your server does not offer two-factor login: an administrator switches it on for the server.

3. Scan the code and confirm with a 6-digit code
In the app, add a new account and scan the QR code under Scan with an authenticator app, or type the key. If you can't scan, choose Copy key and type the key into the app. The app then shows a 6-digit code that changes every 30 seconds. Type the current one into Code from the app and choose Turn on.
The portal checks the code before it saves the key, because a key scanned wrongly would lock you out. If it says the code doesn't match, check that the phone's time is right, or scan the code again. When it works, the card says Your authenticator is set up.
4. Sign out and in again to test
Sign out and sign in again with your password. The sign-in page now asks for the code from your app as a second step. Test it now, while you still remember what you did, rather than on a busy morning.
If you change phones, use New key on the same card: scan the new code on the new phone and the old one stops working when you save.
5. Ask each team member to do the same
Each person switches on two-factor sign-in for their own account, following steps 1 to 4. Administrators can go further: under the server's access and sign-in settings, Required two-factor login makes the second step compulsory, and the operator of an installation can require it for every new account. While it is required, people can't remove their own key.

When someone loses their phone, an administrator opens their page under Users and roles and chooses Remove key. They then sign in with the password alone and set up a new key. While two-factor login is required, only administrators can remove a key, not managers.

6. Move scripts that used HTTP Basic to API tokens
Two-factor sign-in changes how programs reach your account: HTTP Basic (sending your email and password with each request) no longer works for an account with two-factor login. Scripts and integrations that used it must switch to an API token:
- On Password and two-factor, under API tokens, pick an expiry date (7 days by default, at most a year) and choose Create token.
- Copy the token at once: it isn't shown again, and there is no list of tokens, so note where you use each.
- Put the token in the script instead of the password, as the API documentation describes.
The token acts as you. To stop one, paste it under Revoke a token.
Locked out after wrong passwords
Sign-in protection works alongside two-factor login. After 10 wrong passwords in a row an account is locked for 30 minutes by default; administrators can change both numbers, and managers can make them stricter for their own users. The sign-in page says until when the lock lasts. An administrator, or whoever manages the account, can unlock it sooner, and a password reset link ends the lock too. Sessions that are already open keep working.
Single sign-on accounts
If you sign in with your company account, Alongpin does not ask for a code: your company's sign-in handles the second step. See how we protect accounts and the users and roles overview for how the pieces fit together.


