Skip to content

User Management

Elora VPN edited this page Nov 5, 2024 · 2 revisions

User Management

Overview

The User Management system provides comprehensive functionality for managing users in the VPN management panel. This includes user creation, modification, listing, and deletion with features like balance tracking, referral system, and Telegram integration.

Table of Contents

User Properties

Basic Information

  • Username: 3-32 characters, alphanumeric with underscores (e.g., john_doe)
  • First Name: User's first name
  • Last Name: User's last name (optional)
  • Password: Required for account creation

Contact Information

  • Telegram Chat ID: Unique identifier for Telegram integration
  • Telegram Username: User's Telegram handle
  • Phone Number: Contact phone number
  • Email Address: User's email address

System Properties

  • Balance: User's current balance (displayed in readable format)
  • Enable: Toggle user account activation
  • Banned: User ban status
  • Force Join Channel: Require channel membership
  • Created At: Account creation timestamp
  • Modified At: Last modification timestamp

Managing Users

Creating a New User

  1. Click the purple CREATE button

  2. Fill in the required fields:

    • First Name
    • Last Name (optional)
    • Username
    • Password
    • Telegram Chat ID
    • Telegram Username
    • Phone Number
  3. Configure additional settings:

    • Enable: Toggle account activation
    • Banned: Set ban status
    • Force Join Channel: Require channel membership
  4. Click SUBMIT to create the user

User List View

The main user interface displays:

  • ID
  • Full Name
  • Balance
  • Type (Unique identifiers)
  • Enable Status
  • Modified Date
  • Action buttons

Searching and Filtering

Search Options

  • Use the search bar to filter by:
    • First Name
    • Last Name
    • Username
    • Telegram Username
    • Telegram Chat ID

Sorting

Click the "Created" dropdown to sort by:

  • Creation date (ascending/descending)
  • Modified date
  • First name
  • Last name
  • Telegram username

Additional Filters

  • Is debt: Show users with negative balance
  • Enable/Disable: Filter by account status

User Actions

Each user entry has the following action buttons:

View/Edit Actions

  • 🗑️ Delete: Remove user account
  • ✏️ Edit: Modify user information
  • 👥 Accounts: Manage user's accounts
  • 👤 Profile: View user profile
  • 💬 Message: Send message to user

Edit Options

When editing a user, you can modify:

  • Basic information
  • Contact details
  • Account status
  • System settings

Technical Details

Username Requirements

  • 3-32 characters length
  • Allowed characters: a-z, 0-9, underscore
  • Underscores cannot be at start/end
  • Must be unique in system

Related Features

  • Account Management
  • Order History
  • Payment Processing
  • Transaction Records
  • Notifications System
  • Club Scoring System
  • Referral System

Best Practices

User Creation

  1. Validate all input fields
  2. Check for username uniqueness
  3. Verify Telegram information
  4. Set appropriate initial balance
  5. Configure default settings

User Management

  1. Regular account status review
  2. Monitor user balances
  3. Check for suspicious activities
  4. Maintain user privacy
  5. Regular data backup

Security Considerations

  1. Password hashing using bcrypt
  2. Input validation and sanitization
  3. Rate limiting on API endpoints
  4. Access control checks
  5. Audit logging