Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/15aozzz/Lab-Nova-Salud/llms.txt

Use this file to discover all available pages before exploring further.

The Usuarios page is available to administrators and controls who can log in to Botica Nova Salud. Each user account is linked to an employee record and assigned a role that determines their permissions within the system. All passwords are stored as SHA-256 hashes — plain-text passwords are never saved. Route: /usuarios
The default test accounts use weak passwords. Change all default credentials before using this system in a production environment.

What you can do on this page

  • List all users — view all accounts with their username, linked employee, and role.
  • Search users — filter the list by typing a username in the search bar.
  • Create a new user — open the creation form, choose an employee from the directory, and set a username and password.
  • Edit a user — update the username, password, or linked employee for any existing account.
  • Delete a user — remove an account that is no longer needed.

Roles

The system defines two roles:

Administrador

Full access to all pages, including Usuarios, Productos, Clientes, and all reporting features. Administrators can create and manage other user accounts.

Cajero

Access to the sales workflow and day-to-day operational pages. Cajeros can record sales on Nueva Venta and view Comprobantes, but do not have access to user management.

Test accounts

After running the boticanovasalud_final.sql setup script, two accounts are available for testing:
UsernamePasswordRole
adminadmin123Administrador
cajero1admin123Cajero
These accounts exist for initial setup and testing only. Replace the default passwords with strong, unique credentials before going live. Anyone with access to the login screen can attempt to use these credentials.

Creating a user

When creating a new account you need to provide:
FieldDescription
UsernameUnique login name for the account
PasswordInitial password — stored as a SHA-256 hash
EmpleadoThe employee from the directory this account belongs to
The employee list is pulled from the staff directory. Each employee can only be linked to one user account.

Linking users to employees

User accounts are always tied to an employee record. This association ensures that sales, vouchers, and system activity can be traced back to the individual who performed them. You cannot create a user account without selecting an existing employee.

Build docs developers (and LLMs) love