Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Add limit in how many configurations each user may have. #47

Merged
merged 4 commits into from
Mar 20, 2020

Commits on Mar 16, 2020

  1. Add limit in how many configurations each user may have.

    If the option max-number-client-config is more than 0 this number is the
    maximum number of clients a user can create.
    
    The setting only limits creation. If a user had created more
    configurations before this setting is enforced or lowered the user may
    user the service as before, just cant create any more configurations.
    spetzreborn committed Mar 16, 2020
    Configuration menu
    Copy the full SHA
    cb58129 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1c2c27a View commit details
    Browse the repository at this point in the history

Commits on Mar 19, 2020

  1. Alert user when limit is reached.

    When the user tries to create more configurations than are allow an
    alert will pop up.
    spetzreborn committed Mar 19, 2020
    Configuration menu
    Copy the full SHA
    cea0434 View commit details
    Browse the repository at this point in the history

Commits on Mar 20, 2020

  1. Change http status as discussed with @freddd

    http 400 seems a better fit than 429 as a more generic error.
    spetzreborn committed Mar 20, 2020
    Configuration menu
    Copy the full SHA
    0b7644c View commit details
    Browse the repository at this point in the history