Sign-in and accounts
Learn how users sign in with Google or a password, the password rules, how lockout works, what a disabled account sees, and what the profile page shows.
Last updated
Users sign in to the console with Google or with an email address and a password. This page explains both methods, registration, the password rules, the lockout and the profile page.
Sign-in methods#
The Sign in page shows only the methods that the deployment turns on.
- Google sign-in works when the deployment has a Google client id and a client secret. The page then shows the "Sign in with Google" button.
- Email and password sign-in is on by default. An administrator can switch it off with the server setting
passwordLoginEnabled. The page then hides the Email and Password fields.
If both methods are off, the page shows "No sign-in method is available right now."
Sign in with a password#
- Open the Sign in page.
- Enter your email in the Email field.
- Enter your password in the Password field.
- Select "Sign in".
If the sign-in works, the console opens the dashboard. If it fails, an alert shows one of these messages:
| Message | Cause |
|---|---|
| Invalid email or password | The email or the password is wrong. |
| Your account is awaiting admin approval | The account is not approved yet. |
| Your account has been disabled | An administrator disabled the account. |
| Too many attempts. Try again later. | The lockout is active. |
Register#
Self-registration is on by default. An administrator can close it with the server setting authRegistrationEnabled. When registration is closed, the Sign in page has no Register tab.
- Select the Register tab.
- Enter your email and a password.
- Select "Create account".
The page then shows one of two results:
- "Account created" means that your account is ready. Sign in to get started.
- "Registration received" means that an administrator must approve your account before you can sign in.
An email domain that an organization lists makes the account join that organization. A password registration under such a domain starts pending. Other domains start active when the server admits personal users. If the email already has an account, the form shows "An account with this email already exists". The form also shows the server text for a domain that the server does not allow.
Password rules#
A password needs at least 8 characters by default. The server setting minPasswordLength sets the minimum. An administrator can set it from 1 to 256. Registration and password change both read the current value. A shorter password shows the message Password must be at least N characters, where N is the minimum.
Both console forms also ask for at least 8 characters. The Profile card says "At least 8 characters. Your server may require more." A lower server minimum does not relax these forms.
memtrunk stores the password of a user as an argon2id hash.
Change a password#
- Open the Profile page and select the Account tab.
- In the Password card, enter your "Current password". An account without a password, such as a Google-only account, has no such field.
- Enter a "New password".
- Select "Change password". The button reads "Set password" for an account without a password.
The card shows the alert "Password updated" when the change works. Otherwise it shows "Couldn't update your password" with one of these messages:
- Current password is required
- Current password is incorrect
- Password must be at least N characters
- Account is disabled
- Not authenticated
- Too many attempts. Try again later.
- Failed to update password
The card shows only when sign-in is on, password sign-in is on, and your account is enabled and active. It does not show for a read-only auditor.
A password change ends the other sessions of the user. The session that made the change stays valid. Sign out also ends every session of that user. A session from before the sign-out loses access.
Lockout#
Repeated failed attempts lock out password sign-in. The same lockout applies to password change. Registration keeps its own count, so a registration lockout does not block sign-in and a sign-in lockout does not block registration.
- The lock time grows for each consecutive lockout, up to a cap.
- A successful sign-in does not lift a lockout that is already active.
- The server keeps the counts in memory. A restart clears them.
- Two server processes keep separate counts.
While the lockout is active, the form shows "Too many attempts. Try again later."
Disabled accounts#
A disabled account loses access on its next request. The result depends on how the request arrives.
| Request | Result |
|---|---|
| Sign in with a password | The alert "Your account has been disabled". |
| Console request with a session | The server answers 403 with the text Account is disabled. |
| Request with a caller key | The gateway answers 401 with the text Account is disabled. |
The Profile page shows the status badge "Disabled" for such an account.
The profile page#
The Profile page has four tabs. This page covers Account, Usage and Connection.
- The Account tab shows your email, your user id, a role badge and a status badge. Role labels include Member, Org admin and Auditor (read-only). Status labels are Active, Awaiting approval and Disabled. The tab also shows your providers, your organization and a Password card. Without an organization, the tab shows a request form. See Teams and organizations.
- The Usage tab shows your own usage. If you belong to an organization, it offers a Personal and Organization scope switch.
- The Connection tab shows your connection details and the "Memory export" card.