Features
Password reset
Included free on every install.
Password reset is the "forgot password" flow for LyEve Console accounts. A person asks for a reset with their email address, receives a link that works once for one hour, and sets a new password with it. Setting the new password signs the account out of every device.
In the console
Link to the section In the console- On the sign-in page, choose Forgot password?.
- Enter the account's address and choose Email me a reset link. If your
organization's identity provider created the account and the console's
address does not already name your organization, enter its short name in
Organization (optional). The console shows that field when it runs
with
SIGN_IN_ORGANIZATION=true. - Open the link from the email. On Choose a new password, enter the password in New password and Confirm new password, then choose Save.
The console checks that the password has at least 12 characters before it
sends the token, so a password that is too short does not spend the link. The
engine then applies the install's password policy, so a PASSWORD_MIN_LENGTH
above 12 asks for more.

How it works
Link to the section How it works| Step | What happens |
|---|---|
| Request | The console posts the address, and the organization when one was entered, to /api/admin/auth/password-reset/request. The answer is the same, in about the same time, whether or not the account exists, and whether or not another tenant holds the address. A new request cancels the account's earlier unused links. |
The link <LYEVE_CONSOLE_URL>/reset-password?token=<token> is mailed. When the account has a tenant, the link adds &tenant=<tenant>. A console that runs with SIGN_IN_ORGANIZATION=true carries it on to the sign-in page, which fills in the organization, and any other console ignores it. | |
| Confirm | The person chooses a new password, and the console sends it with the token. The engine holds it to the install's password policy before it reads the token, so a refused password leaves the link usable. The account is checked again, so a link mailed before the account was disabled, or before its sign-in window closed, sets no password. |
| Sign-out | Every session and refresh token the account held ends. |
Turn it on
Link to the section Turn it onPassword reset runs on every install. To deliver the email, give the instance
a mail relay. With the email feature configured, the mail goes
through it and is the tenant's password-reset template, so its wording and
design are yours to change. See required templates.
Otherwise the instance's own SMTP settings are used. A relay on loopback or a
private network also needs SMTP_ALLOWED_PRIVATE_NETWORKS, as
send through one relay explains. Set
LYEVE_CONSOLE_URL to the address people open the console at, such as
https://admin.example.com. In production, password reset refuses to start
without it.
With no relay configured, a request still answers 200 and no mail is sent.
The server log records that a token was issued, with only its first eight
characters.
Console v0.28.0
- On the console's sign-in page, choose Forgot password?.
- Enter your address in Email and choose Email me a reset link. The page says a reset link is on its way if an account exists for that address.
- Open the link from the email. On Choose a new password, enter
shortin both fields and choose Save. The page says Use at least 12 characters. and keeps the link usable. - Enter
A-new-Password-2026in New password and Confirm new password, then choose Save. The page says the password changed and asks you to sign in with the new one.
Engine API v0.62.0
Both routes are public and take no Authorization header.
-
Ask for a reset:
Shell curl -X POST http://localhost:3001/api/admin/auth/password-reset/request \-H "Content-Type: application/json" \-d '{"email": "you@example.com"}'JSON { "message": "If an account with that email exists, a password reset link has been sent." }An account that a tenant's identity provider created is reached only through its tenant. When the hostname you call does not name that tenant, add
"tenant": "<tenant slug>"to the body. A tenant the hostname names wins over the field. -
Open the email and copy the
tokenfrom the link. -
Try a password that is too short. The token is not spent:
Shell curl -X POST http://localhost:3001/api/admin/auth/password-reset/confirm \-H "Content-Type: application/json" \-d '{"token": "<token from the link>", "password": "short"}'JSON { "error": "Password must be at least 12 characters.", "code": "AUTH_PASSWORD_TOO_SHORT" }The answer is
422. -
Set the new password:
Shell curl -X POST http://localhost:3001/api/admin/auth/password-reset/confirm \-H "Content-Type: application/json" \-d '{"token": "<token from the link>", "password": "A-new-Password-2026"}'JSON { "message": "Password has been reset successfully." } -
Send the same token again. The answer is
400withinvalid or expired reset token, even when two confirms arrive at once.
The new password has to pass the same policy as a new account's:
PASSWORD_MIN_LENGTH, PASSWORD_REQUIRE_COMPLEXITY, PASSWORD_CHECK_COMMON
and the 72-byte limit. With the defaults, a password of lower-case letters,
digits and hyphens alone, such as a-new-password-2026, is refused with
AUTH_PASSWORD_NEEDS_COMPLEXITY. A refusal names the rule in code, and the
link stays usable for a better password. The account is now signed out
everywhere, and the new password signs it in.
Settings
Link to the section Settings| Variable | What it does | Default |
|---|---|---|
SMTP_HOST | Mail relay host. Without it and without the email feature, no mail is sent. | unset |
SMTP_PORT | Relay port. | 587 |
SMTP_FROM | Sender address. | unset |
SMTP_USER, SMTP_PASS | Relay credentials. Both must be set to authenticate. | unset |
LYEVE_CONSOLE_URL | The console address the link points to. Required in production, where it must use https. | http://localhost:5173 outside production |
If you set LYEVE_PLUGINS, include password-reset in it.
| Limit | Default |
|---|---|
| Link lifetime | 1 hour |
| New password | The install's password policy, as for a new account. See Configuration. |
Reset requests per client address (password-reset.ip) | 10 per minute |
Reset mails per email address (password-reset.email) | 1 per 5 minutes |
| Request route, per client address | 3 per second, burst 5 |
| Confirm route, per client address | 5 per second, burst 10 |
A super admin can change the two named limits on the
rate limiting page. A request over the per-address mail
limit still answers 200 and sends nothing, so the limit reveals nothing
about the account. PUBLIC_RATE_LIMITS changes the two per-route limits.
Spent and expired tokens are deleted by a daily sweep. Deleting a tenant, or a privacy erasure, deletes them at once.
Errors answer a JSON body with an error message.
| Status | Message | Cause |
|---|---|---|
400 | invalid or expired reset token | The token is wrong, expired or already used, or the account was disabled or left its sign-in window after the link was sent. Request a new link. |
422 | AUTH_PASSWORD_TOO_SHORT, AUTH_PASSWORD_NEEDS_COMPLEXITY, AUTH_PASSWORD_TOO_COMMON or AUTH_PASSWORD_TOO_LONG in code | The new password fails the install's password policy. The link is not spent. |
503 | password reset is not configured | LYEVE_CONSOLE_URL is not set. |
Every other error
| Status | Message | Cause |
|---|---|---|
400 | invalid JSON | The body is not JSON. |
400 | A validation error with a fields object | A field is missing, or email is not an address. |
429 | too many requests | Over 10 requests a minute from one client address. |
429 | rate limit exceeded | Over a per-route limit. |
Troubleshooting
Link to the section Troubleshooting- No email arrives. Check that
SMTP_HOSTis set, or that the email feature is configured, and look in the server log forfailed to send email. A log line withSMTP host resolves to a restricted addressmeans the relay is on a private network thatSMTP_ALLOWED_PRIVATE_NETWORKSdoes not list. - The link points to the wrong address. Set
LYEVE_CONSOLE_URLto the console's public URL. - No email arrives for an account an identity provider created. The
request has to name the account's tenant, by hostname or by
tenant. The account also gets no mail when the provider has not signed it in within the tenant's sign-in window, or when the directory deactivated it. - Password reset is missing. In production it does not start without
LYEVE_CONSOLE_URL. The server log names the setting at startup.
Related
Link to the section Related- Sign-in options: every way to sign in, side by side.
- Magic link sign-in: sign in from an emailed link instead.
- Email: send the mail through your provider.