Your Account
Your account is the page of the account that you logged in with. On this page, you change your own password, and you make and revoke your own tokens. Every role can open it: administrator, operator and viewer. To open the page, click your user name at the bottom of the sidebar, or its first letter when the sidebar is folded, then click “Your account”.
The header
Section titled “The header”The header says “Your account”. Under it are your user name and your role, such as “dana, Administrator”.
The tabs
Section titled “The tabs”Under the header are two tabs:
- “Password”: the form that changes your password.
- “Tokens”: your tokens, with “New token” and “Revoke”.
The page opens on “Password”. When you click a tab, the address of the page changes, such as
/account/?tab=tokens. So a reload, or a link with that address, opens the same tab. “Back” in
the browser leaves the page, and does not go back to the other tab.
When you change the tab, the page keeps what you typed in the other tab. The page does not read your tokens again.
Change your password
Section titled “Change your password”The tab “Password” has three fields, one under the other:
- “Current password”: the password that you logged in with.
- “New password”: the password that you want. It must have at least 12 characters.
- “New password again”: the new password a second time, so that a typing mistake does not lock you out.
To change your password:
- In “Current password”, type the password that you use now.
- In “New password”, type the new password.
- In “New password again”, type the new password again.
- Click “Change password”.
The words “Changing it ends every session of this account.” are next to the button. When the server accepts the new password, a message says “Password changed. Log in with your new password.” The server ends every session of your account, also the session in this browser. So the console opens the “Log in to Tadoru” page. Log in with your new password, as Logging In and Out tells.
The passwords stay in the form only. When you leave the page, the console forgets them.
Errors
Section titled “Errors”Before the console sends the form, it checks the new password:
- “At least 12 characters” under “New password”: the new password is too short.
- “The two passwords do not match” under “New password again”: the two copies are not the same. Type them again.
The server can also refuse the change. After each refusal, the form clears the three passwords, so you type them again:
- The words of the server under “Current password”: the current password is wrong. Type it again. Your session goes on.
- When your session ended, the same words also show under “Current password”. For example, an administrator set a new password for your account. The console cannot tell the two cases apart by the words. So it reads your tokens once more. If your session ended, that read ends the session in the console too, and the login page opens.
- The words of the server under “New password”: the server refuses the new password, for example because it is too short.
- A message with the words of the server: the server refuses for another reason. After too many wrong passwords, the server refuses for some time, and its message says how long to wait. When too many passwords wait for their check, the server asks you to try again later.
The password of another account is not on this page. An administrator sets it on the Accounts page (The Accounts).
Your tokens
Section titled “Your tokens”A token is a long secret text. A script sends it to the API of the server, and the server then treats the script as you. The token has your role. The tab “Tokens” lists your own tokens under “New token”, newest first. Each row shows:
- “Token”: the first part of the token, before the dot. It names the token. It is not the secret.
- “Label”: the words that you gave the token, such as “a dashboard”. A token can have no label.
- “Made”: the date and the time of the new token.
On a phone, the label and the time show on a second line, under the token.
When you have no token, the tab says “No tokens yet. A token lets a script use the API as you.”
An administrator sees the tokens of every account on the Accounts page (The Accounts). This page shows only your own tokens, also for an administrator.
Make a token
Section titled “Make a token”- Click “New token”. A panel opens at the right side of the page. On a phone, it rises from the bottom.
- Optional: in “Label”, type some words that tell what the token is for. The label can have at most 200 characters.
- Click “Make token”. To stop, click “Cancel”. While the server makes the token, “Cancel” is gray, and the panel stays open, so you always see the token. The back gesture of a phone still closes the panel then. The server still makes the token, but the panel does not show it. The token works, and it is in the list. Revoke it, and make a new one.
The panel then shows the token in a box with the label “Token”, under the words “Copy this token now. The server shows it only once.” Copy the token now, and keep it in a safe place:
- Click “Copy”. The button then says “Copied”, and the token is on your clipboard.
- When the button “Copy” is not there, the browser does not let the page use the clipboard. For example, the console is open over plain HTTP. Click in the box: the console selects the whole token. Then copy it with the keyboard of your system.
Then close the panel. Until “Copy” works, the panel asks before it closes, so you do not lose the token by mistake:
- Click “Close”. Escape, a click outside the panel, the close button at the top and a swipe do the same. The button turns red and says “Close without copying”, and a line beside it says “The server shows this token only once. Click again to close. The token works until you revoke it.”
- Click the button again, or press Escape again. The panel closes. To keep the token on the screen, click in the box: the button says “Close” again.
When “Copy” worked and says “Copied”, “Close” closes the panel at once, because you have the token.
When you close the panel, the console forgets the token. The token still works, and it is in the list. The console does not keep the token in the browser, in the address or in a message.
If you typed a label and click “Cancel” before “Make token”, the panel asks first too. There, “Cancel” turns red and says “Discard changes”, as in other forms.
If the server refuses the token, its words show at the top of the panel, the cursor moves to them, and the label stays.
If you lose a token, you cannot see it again. Revoke it, and make a new one.
Revoke a token
Section titled “Revoke a token”- In the row of the token, click “Revoke”.
- The console asks “Revoke the token 7a9282af6cc6?”, with the first part of that token.
- Click “Revoke token”. To keep the token, click “Cancel”.
A message says “Revoked the token 7a9282af6cc6”, and the token goes from the list. A script that uses the token can no longer use the API. If the server refuses, a message shows the words of the server.
The tokens of other accounts are not on this page. An administrator revokes them on the Accounts page (The Accounts).