OxygenDispatch includes a built-in user management module that lets privileged administrators create staff accounts, assign roles, control login access, and reset passwords — all without touching the database directly. Every user account is tied to one of three roles that determine which areas of the application that user can access.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Janblack07/OxygenDispatch/llms.txt
Use this file to discover all available pages before exploring further.
All user management routes (
/users and its sub-actions) are protected by the role:PROGRAMADOR,ADMINISTRADOR middleware. Users with the ENCARGADO role cannot access the user list, create new accounts, edit existing ones, or perform any password or status actions. Attempts to access these routes will be blocked at the middleware level.User fields
The following fields are available when creating or editing a user account:Full display name for the user. Maximum 150 characters.
Email address used to log in. Must be a valid email format, unique across all user accounts, and no longer than 150 characters.
Access role assigned to the user. Must be one of the values defined in the
AppRole enum: PROGRAMADOR, ADMINISTRADOR, or ENCARGADO. See the Roles section for a full description of each.Account password. Minimum 8 characters. This field is optional on creation — if omitted, the system auto-generates a secure 12-character random password (plus a trailing
!) and includes it in the success flash message. The password field is not available on the edit/update form; use the dedicated reset password action instead.Controls whether the user can log in. Defaults to
true on account creation. Can be toggled at any time via the toggle active action.Creating users
! is generated automatically using Laravel’s Str::random(12):
Managing existing users
List users
Edit a user
name, email, and role. Passwords are intentionally excluded from the update form — to change a password, use the Reset Password action on the user’s row.
Delete a user
Toggling active status
is_active flag between true and false. This is a non-destructive way to prevent a user from logging in without deleting their account — useful for staff on leave or when access needs to be temporarily suspended.
- If
is_activeis currentlytrue→ it becomesfalse(user is locked out) - If
is_activeis currentlyfalse→ it becomestrue(access restored)
Estado actualizado. success message.
Resetting passwords
! — hashes it, saves it to the user record, and returns the plain-text value in the success flash message:
Roles
OxygenDispatch uses three roles defined in theAppRole enum. Roles are stored as plain strings on the users table.
| Role | Access |
|---|---|
PROGRAMADOR | Full access to all features, including user management, catalog setup, batch and tank operations, dispatches, and reports |
ADMINISTRADOR | Full access to all features, including user management, catalog setup, batch and tank operations, dispatches, and reports |
ENCARGADO | Access to all operational features (batches, tanks, dispatches, inventory movements, reports, technical receptions); cannot access user management routes |