Account page
Your account settings live in two places. The account menu at the bottom of the left sidebar shows who you are signed in as, holds a few display switches and signs you out. The Change Password page at /ui/change-password changes your password and sets up two-factor sign-in. Every signed-in user has the account menu. The menu links to the Change Password page only when you signed in with a username and password, but the page itself has no role guard. Neither needs a license.
A real-world scenario
An admin who signs in with a username and password is asked by security to turn on two-factor sign in. They open Change Password from the account menu, scan the setup key with their authenticator app, save the recovery codes in their password manager, and sign out to check that the next sign in asks for a code.
Steps
-
Open the account menu at the bottom of the left nav and click Change Password, or go to
/ui/change-password. -
Set up two-factor sign in with your authenticator app and enter the 6-digit code to turn it on. Save the recovery codes shown once.
-
Click Logout in the account menu. The page calls the same route as:
curl -X POST http://localhost:4000/session/logout \-H "Authorization: Bearer spanway-ui-session" \-b "token=<your session cookie>" -
Sign in again with your username and password. The Two-factor sign-in step asks for a code.
Expected result
The sign in now asks for a 6-digit code after the password, and each recovery code works once.
Account menu
The menu trigger sits at the very bottom of the sidebar. It shows a colored circle with your initials, taken from the part of your email before the @ or from your user ID, your display name and your role. When the sidebar is collapsed to its icon rail it shows only the circle, and hovering it shows your name. Click it to open the menu above it.
In plugin mode the dashboard uses a top bar instead of the sidebar, and the same menu opens from your initials at the right end of the top bar. It has the same rows, switches and actions, without the header line.
Header and details
The header shows "Spanway", a small bouncing palm tree icon unless you hid it, and a badge with the running gateway version that opens the release notes in a new tab.
| Row | What it shows |
|---|---|
| Tier | Enterprise when the gateway has a license, Starter otherwise. Hovering Starter shows "Upgrade to Enterprise for advanced features". |
| Role | Your role, for example Admin, Admin Viewer, Org Admin, Internal User or Internal Viewer. |
| Your email, or a dash, with a copy button. | |
| User ID | Your user ID, with a copy button. |
Display switches
These switches change only what this browser shows you. They are stored in the browser, take effect immediately, apply to every tab of the dashboard in that browser, and do not affect other users. Signing out does not reset them.
| Switch | What it hides |
|---|---|
| Hide New Feature Indicators | The Beta badges and dots next to newer features in the nav and on pages. |
| Hide All Prompts | The support links in the top bar. |
| Hide Blog Posts | The Updates panel on the Home page and the blog menu in the top bar. |
| Hide Bouncing Icon | The bouncing palm tree icon next to the Spanway name. |
| Hide Admin Assistant | Hides the Admin Assistant button for you, in this browser only, so it stays out of the way when you do not use it. On hides the button and its Cmd+J shortcut, off shows them. Off by default. It does not turn the assistant off for other admins, and it is stored separately for each gateway and user. The switch appears only on a gateway with a license and only for a proxy admin who is not view-only. Hover it to see the same explanation. |
Actions
| Action | What it does |
|---|---|
| Change Password | Opens /ui/change-password. Shown only when you signed in with a username and password, not with single sign-on. |
| Logout | Revokes your dashboard session on the gateway with POST /session/logout, which also clears the HttpOnly session cookie, then clears the stored return URL and other dashboard data in this browser, and sends you to the gateway's logout URL (PROXY_LOGOUT_URL) when one is set, or back to the login page otherwise. If the gateway cannot be reached, the local sign-out still happens and the session key and its cookie expire on their own. Signing out of Spanway does not sign you out of your identity provider. |
Change Password page
The page is titled Change Password, "Enter your current password and choose a new one. The new password must meet this proxy's password policy."
| Control | Type | What it does |
|---|---|---|
| Current Password | Password with show and hide | Required, with the message "Current password is required". |
| New Password | Password with show and hide | Required, with the message "New password is required". The gateway checks it against its password policy. |
| Confirm New Password | Password with show and hide | Required, with the message "Confirm your new password". It must match, or you see "New passwords do not match". |
| Change Password | Button | Sends the change. It is disabled and shows a spinner while the request runs. |
On success you see "Password updated" and the form clears. Every other dashboard session you have open, in another browser or on another computer, is signed out, because the old password may have been seen by someone else. The session you used stays signed in. When the gateway refuses the change, for example because the current password is wrong or the new one breaks the password policy, its message appears in a red box under the fields and nothing changes. The password rules themselves are set on the gateway.
The page calls the same route as this request, which only works with the dashboard session you got by signing in with a password, not with an API key or a single sign-on session.
curl -X POST http://localhost:4000/user/password/change \
-H "Authorization: Bearer spanway-ui-session" \
-b "token=<your session cookie>" \
-H "Content-Type: application/json" \
-d '{"current_password": "old-passphrase-2025", "new_password": "longer-new-passphrase-2026"}'
{"user_id": "user-jane", "message": "Password updated successfully."}
Forced password change
When your password was found in a known data breach, or an administrator set it as a temporary password, the gateway marks your session as needing a password change. Every dashboard page then sends you to /ui/change-password, and a warning at the top says "Your password must be changed before you can use the dashboard: it was either found in a known data breach or set by an administrator as a temporary password. After updating it, you will be signed out to log in again." After a successful change you see "Password updated. Please log in with your new password.", your session is revoked and you are sent to the login page. The two-factor card is hidden while a change is required.
Two-factor sign-in
Below the password form, the Two-factor sign-in card sets up an authenticator app code that is asked for every time you sign in with your username and password. It does not apply to single sign-on, which uses your identity provider's own checks. The card works only from a signed-in Admin UI session, so it cannot be driven with an API key. Every action that takes a code goes through the gateway's sign-in attempt limits, so repeated wrong codes are throttled.
When it is off
The card shows Set up an authenticator app. When two-factor sign-in is required for your account, a note says "Two-factor sign-in is required for your account. You will set it up at your next sign-in if you do not now." It is required when the gateway sets require_mfa_for_password_login: true in general_settings, or when an organization you belong to requires it.
Pressing the button starts the setup and shows two ways to add the account to your app. Open in an authenticator app on this device is an otpauth link for an app on the same device. Under "Or enter this setup key by hand" is the setup key to type into the app. Then enter the 6 digit code from the app under Code from the app and press Turn on. A wrong code shows "Invalid code". Nothing is enforced until a code is accepted.
When the code is accepted the card shows ten recovery codes, "Each recovery code signs you in once if you lose your authenticator. They are shown only now, so store them somewhere safe." Copy copies them all and Download saves them as spanway-recovery-codes.txt. Done hides them. They cannot be shown again.
When it is on
The card reads "On." followed by how many recovery codes you have left.
| Control | What it does |
|---|---|
| Code to replace recovery codes and New codes | Enter a current code from your app to replace all your recovery codes with ten new ones, which are shown once as above. The old codes stop working. |
| Code to turn it off and Turn off | Enter a current code to turn two-factor sign-in off. When it is required for your account this control is replaced by "It is required for your account, so it cannot be turned off." and the gateway refuses the change. |
Each submit button stays disabled until you type a code, and the field clears after each submit. If you lose both your authenticator and your recovery codes, a proxy admin can reset two-factor sign-in for you from your user's page under Internal Users, and you set it up again at your next sign-in when it is required.
Empty, error and disabled states
The account menu shows a dash for a missing email. The version badge is hidden until the gateway reports its version. Change Password is not in the menu for single sign-on sessions, and Hide Admin Assistant is not in it unless the gateway is licensed and you are a proxy admin who is not view-only.
On the Change Password page, the gateway's error for a refused change appears under the form. On the two-factor card, a failed action shows the gateway's message in red at the top of the card, for example "Invalid code" or "Two-factor sign-in is already set up. Disable it first to start over.". While the two-factor status loads, or if loading it fails, the card shows only its heading and description with no buttons. Reload the page to try again.
Differences by role and license
Every role has the same menu, except that Hide Admin Assistant appears only for a proxy admin who is not view-only on a licensed gateway. The Tier row reads Enterprise or Starter depending on the license. Password and two-factor settings depend on how you signed in, not on your role. Users who sign in with single sign-on have no Change Password link, and two-factor sign-in only protects username and password sign-in. Whether two-factor sign-in is required comes from the gateway setting or your organization, and a required setup cannot be turned off from this page.
Errors
| What you see | What it means | Fix |
|---|---|---|
| No Change Password in the menu | You signed in with single sign on. | Manage your password and two-factor sign in at your identity provider. |
| The code is refused | The phone clock is off, or the code expired. | Sync the phone clock and enter the current code. |
| You lost your phone | The authenticator codes are gone. | Use a recovery code, then set up two-factor sign in again. |
| Two-factor sign in cannot be turned off | It is required by the gateway setting or your organization. | Ask a proxy admin. |
400 Current password is incorrect. | The current password you typed is wrong. | Type it again. After several wrong tries, sign-in limits slow you down. |
400 New password must be different from the current password. | The new password is the same as the old one. | Choose a different password. |
400 naming the password policy, or saying the password was found in a data breach | The new password is too short, misses a required character type, or appears in a known breach. | Choose a longer password that you have not used elsewhere. |
400 This account has no password set, so there is no password to change... | The account signs in another way, for example single sign-on. | Ask an admin for an invitation link with POST /invitation/new. |
400 No user is associated with this session, so there is no password to change. | The session belongs to no user. | Sign in with your own username and password. |
403 Passwords can only be changed from a dashboard session created by logging in with a password. | The request used an API key or a single sign-on session. | Sign in with your username and password and use the page. |
Logs
A successful change writes Password changed via /user/password/change for user_id=<id> at INFO level, which needs no action. See the log reference.