D7: Add validation for Token timeout field

Created on 5 February 2023, about 2 years ago
Updated 27 June 2023, almost 2 years ago

Problem/Motivation

On the Quant Token tab, you can enter anything into the Token timeout field. It should be validated.

The field does at least have a description with a link to documentation with the correct formatting.

Steps to reproduce

  • Install Drupal 7
  • Enable and configure quant_api module
  • Go to Token tab (/admin/config/services/quant/token)
  • Fill in an invalid Token timeout
  • Click Save configuration button
  • Result: Configuration will save with no error
  • Expected result: Error shown because the Token timeout is invalid
  • Proposed resolution

    Add validation code.

    Remaining tasks

    1. Update code
    2. Review and test
    3. Commit :)

    User interface changes

    API changes

    Data model changes

    πŸ“Œ Task
    Status

    Fixed

    Version

    1.0

    Component

    Code

    Created by

    πŸ‡ΊπŸ‡ΈUnited States Kristen Pol Santa Cruz, CA, USA

    Live updates comments and jobs are added and updated live.
    Sign in to follow issues

    Comments & Activities

    Production build 0.71.5 2024