Add validation when saving LRS credentials

Created on 13 January 2025, about 2 months ago

Problem/Motivation

src/Form/LmsXapiSettingsForm.php, implement validateForm() method.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇵🇱Poland Graber

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

Comments & Activities

  • Issue created by @Graber
  • 🇬🇧United Kingdom catch

    We could validate that the LRS URL is a URL, but if we want to validate that the URL is accessible etc., I think that should be in a hook_requirements() or some kind of status check tab rather than in the form validation - if the service was down temporarily or if someone is working with spotty internet, then it would cause the validation to fail, even if the link is valid.

Production build 0.71.5 2024