Skip to content

add API for user expiration dates#609

Merged
simonLeary42 merged 11 commits intomainfrom
expiry-api
Feb 13, 2026
Merged

add API for user expiration dates#609
simonLeary42 merged 11 commits intomainfrom
expiry-api

Conversation

@simonLeary42
Copy link
Member

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a LAN-accessible API endpoint to fetch a user’s calculated idle-lock and disable dates based on the stored last-login timestamp.

Changes:

  • Added /webroot/lan/api/expiry.php returning expiry dates (idlelock/disable) for a given uid.
  • Exposed UnitySQL::getUserLastLogin() publicly and updated functional tests to use it.
  • Added functional test coverage for the new API and documented /lan webserver configuration (plus dev Apache config example).

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
webroot/lan/api/expiry.php New JSON-like API endpoint computing idlelock/disable dates from SQL last-login.
tools/docker-dev/web/unity-apache.conf Adds a /lan Apache location block for dev environments.
test/functional/ExpiryTest.php Replaces reflection access with public getUserLastLogin().
test/functional/ExpiryApiTest.php New functional test for the expiry API endpoint.
resources/lib/UnitySQL.php Makes getUserLastLogin() public to support API/tests.
README.md Documents required /lan webserver configuration for the new endpoint.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

bryank-cs
bryank-cs previously approved these changes Feb 12, 2026
@simonLeary42 simonLeary42 merged commit e0849e2 into main Feb 13, 2026
3 checks passed
@simonLeary42 simonLeary42 deleted the expiry-api branch February 13, 2026 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants