Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuration overhaul: make mail-related configuration clearer #670

Commits on Jul 9, 2024

  1. feat: [torrust#654] new registration confg section

    Registration Disabled:
    
    ```toml
    ```
    
    Registration without email option:
    
    ```toml
    [registration]
    ```
    
    Registration optionally including an email address:
    
    ```toml
    [registration]
    [registration.email]
    ```
    
    Registration with  email:
    
    ```toml
    [registration]
    [registration.email]
    required = true
    ```
    
    Registration with optional email, but if email is supplied it is verified:
    
    ```toml
    [registration]
    [registration.email]
    verified = true
    ```
    
    Registration with email and email is verified:
    
    ```toml
    [registration]
    [registration.email]
    required = true
    verified = true
    ```
    
    TODO: remove old settings and use the new ones.
    josecelano committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    1c5e862 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    29cc9dc View commit details
    Browse the repository at this point in the history
  3. feat: [torrust#654] remove config option email_verification_enabled

    The config option:
    
    ```toml
    [mail]
    email_verification_enabled = false
    ```
    
    was replaced with:
    
    ```toml
    [registration]
    
      [registration.email]
      verified = true
    ```
    josecelano committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    e0dbdbe View commit details
    Browse the repository at this point in the history
  4. fix: bug, allow empty email is registration when it's optional

    If the email in the registration form is optional the application should
    allow not validate it when it's emtpy. It should only validate the email
    when is not empty. We only make sure that if present is a valid email.
    josecelano committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    4fbeead View commit details
    Browse the repository at this point in the history
  5. refactor: move ConfigurationPublic

    ConfigurationPublic is not a configuration type. It does not belong to
    the configuration. We don't need to version this type when the
    configuration changes.
    
    It's a type containing a subset of the data contained in the
    configuration that we want to expose via the API. It happens that those
    are the fields we want to expose via the API becuase they are the fields
    we are using in the webapp (Index GUI) but it's not part of the
    configuration. It's a concrete view of the configration used for other
    purposes rather than initialize the Index app.
    
    In the future, it could be even moved to the API as a API resource.
    
    Changing this struct changes the API contract. The contract with the API
    consumers, not the contract with the Index administrators, the people
    responsible for setting up the Index and it's configuration.
    
    That the reason why it was moved from the config mod to the config
    service.
    
    It's not a problem now, but we should cerate an API resource for this
    type becuase it should be versioned in the API. WE are using versioning
    in the API but the type was excluded, meaning it cannot be versioned.
    josecelano committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    a5e745e View commit details
    Browse the repository at this point in the history
  6. docs: remove endpoint doc

    The endpoint was removed.
    josecelano committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    8d660b8 View commit details
    Browse the repository at this point in the history