ctrl-space-labs / gendox-core

Gendox: "Generate. Train. Evolve."
GNU Affero General Public License v3.0
5 stars 0 forks source link

Limit Website Addition & Validate URL in Organization Settings (Advanced Settings) #353

Open gyfantidis opened 2 weeks ago

gyfantidis commented 2 weeks ago

Title: Limit Website Addition & Validate URL in Organization Settings (Advanced Settings)

Description: Update the Organization Settings page under Advanced Settings to enforce the following rules for website entries:

  1. Website Limit Based on Plan and Seats

    • Limit the number of websites a user can add based on the user's subscription plan.
    • The maximum allowed websites should be calculated as follows:
      organization_web_sites (from gendox_core.subscription_plans) * number_of_seats (from gendox_core.organization_plan)
  2. Website URL Validation

    • Ensure that when a user adds a website, a validation check is performed to confirm that the input meets the following criteria:
      • Starts with http:// or https://
      • Contains at least one letter before the . character
      • Contains at least two letters after the . character