View Categories

Users

Overview #

The Users Module in ConMan (Construction Manager) Thailand allows administrators to securely manage user accounts. It supports viewing, adding, editing, and deleting users with details like username, Thai username, email, and login history. Passwords are never displayed or stored in plain text — they are hashed using BCrypt for security.

This module connects to PostgreSQL and uses a DevExpress grid for the interface. This documentation has been updated as of November 10, 2025, to reflect secure password handling.


Getting Started #

Accessing the Users Module #

  • Launch ConMan and log in via the Main Form’s Login Screen.
  • From the Menu Screen, click the Users tile, or use the toolbar (Modules > Users).
  • The Users window opens, centered on your screen, with the title “Users” at the top.

Interface Layout #

  • Users Table: A grid displaying all user accounts, filling the entire window.
  • Navigation Bar: Buttons at the top of the table for managing records (e.g., add, save, delete).
  • Change Password Button: New button in the toolbar for secure password updates.
  • Footer: Displays the total number of users at the bottom of the Username column.

Key Features and How to Use Them #

Users Table #

The Users Table is the main feature, showing a list of all user accounts.

Columns #

ColumnDescriptionVisibility / Editability
UsernameThe user’s login name (Latin)Visible, editable
ชื่อผู้ใช้ (ไทย)Thai username for displayVisible, editable
EmailThe user’s email addressVisible, editable
Last LoginDate/time of most recent loginVisible, read-only
IdUnique identifierHidden
Created AtAccount creation timestampHidden
  • Password column: Removed for security — passwords are not shown.

How to Use #

  1. View Users
    • The table loads automatically.
    • Scroll to see all columns and rows.
    • Last Login updates automatically on login.
  2. Add a New User
    • Click the Insert button (+).
    • Enter Username, ชื่อผู้ใช้ (ไทย), and Email.
    • Click Post to save (temporary record).
    • Immediately click Change Password to set a secure password (required for new users).
  3. Edit a User
    • Click a cell and edit (username, Thai name, email).
    • Click Post to save.
    • To update password: Select the row → click Change Password.
  4. Change Password (Secure)
    • Opens a modal dialog.
    • Enter old password (verified against hash).
    • Enter and confirm new password.
    • New password is hashed with BCrypt and saved.
    • For new users or admin resets: Old password may be skipped.
  5. Delete a User
    • Select row → click Delete (X) → confirm.
  6. Count Users
    • Shown in footer under Username column.
  7. Customize the Table
    • Right-click headers → quick customization to reorder or show/hide columns.

Tips and Best Practices #

  • Keep Passwords Secure: Always use strong passwords (min 8 chars, mix letters/numbers/symbols).
  • Use Meaningful Names: Fill both Latin and Thai usernames for better local UX.
  • Monitor Activity: Check Last Login for inactive accounts.
  • Save Changes: Always click Post after editing.
  • Thai Support: The Thai username column helps with local language display.

Troubleshooting #

  • Table is Empty: Check database connection in Main Form.
  • Changes Not Saving: Click Post; unsaved edits are lost on close.
  • Password Issues: Use Change Password button — direct editing is disabled.
  • Old Plain-Text Passwords: Contact admin for one-time migration to hashes.
  • Can’t Delete: Ensure user isn’t logged in.

Glossary #

  • Username: Login name (required, unique).
  • ชื่อผู้ใช้ (ไทย): Display name in Thai.
  • Email: User email (required, unique).
  • password_hash: Secure BCrypt hash (internal, never shown).
  • Last Login: Auto-updated on successful login.
  • Navigation Bar: Buttons for record management.
  • Change Password: Secure dialog for password updates.