Skip to main content
Users are system accounts — the credentials that people use to log in to Hotel Guevarini. Every user has a name, a unique email address, a password, and a role. Users are distinct from client records: a client is a guest record, while a user is a login account. The two can be linked.
The Usuarios menu item is only visible to Administrators. Clients cannot access this section.

Viewing Users

Navigate from the dashboard to Usuarios. The page lists all system accounts with the following columns:
ColumnDescription
IdAuto-generated numeric identifier
Nombre CompletoFull name of the account holder
CorreoEmail address (unique across the system)
RolAdministrador or Cliente
EditarLink to the edit form
EliminarDelete button (disabled for your own account)

Adding a New User

1

Click '+ Nuevo Usuario'

On the user list page, click + Nuevo Usuario. This opens /views/usuarios/nuevo_usuario.php.
2

Fill in the user form

Complete all required fields:
  • Nombre Completo — Full name of the person
  • Correo Electrónico — A unique email address for login
  • Contraseña temporal — An initial password for the account
  • Rol del Usuario — Select Administrador or Cliente
3

Save the user

Click Guardar Usuario. The system creates the account and sends a verification email to the provided address. The user must click the link in that email before they can log in.
After creating a user with the Client role, link their account to an existing client record by editing the client and associating the id_usuario. This enables the user to see their own reservations when they log in.

Editing a User

1

Click 'Editar' on the user row

On the user list, click Editar next to the account you want to update. This opens /views/usuarios/editar_usuario.php?id={id}.
2

Update the fields

You can change the user’s Nombre Completo, Correo Electrónico, Rol, or Contraseña. All editable fields are pre-filled with the current values.
3

Save changes

Submit the form to save the updated account details.

Deleting a User

Click the Eliminar button on a user’s row. A confirmation modal appears before deletion is performed. The delete button is disabled for your own account — you cannot delete the account you are currently logged in with.

Roles

RoleIDAccess Level
Administrador1Full access to all modules, including Users
Cliente2Can view available rooms and their own reservations only

Clients vs. Users

ConceptTablePurpose
UserusuariosLogin credential with a role; used for authentication
ClientclientesGuest record with name and phone; used for reservations
A user account can exist without a linked client record (e.g., an Administrator who never makes reservations). A client record can also exist without a linked user account (e.g., a walk-in guest added by the front desk). The link is optional and stored as the id_usuario foreign key on the clientes table.