Skip to content

Improve control on custom icon display on login page#3125

Closed
weilai-irl wants to merge 2 commits into
wip-125751-m501from
wip-127712-m501
Closed

Improve control on custom icon display on login page#3125
weilai-irl wants to merge 2 commits into
wip-125751-m501from
wip-127712-m501

Conversation

@weilai-irl
Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings April 27, 2026 19:28
@weilai-irl weilai-irl self-assigned this Apr 27, 2026
@weilai-irl weilai-irl added this to the 2026-02 milestone Apr 27, 2026
Copy link
Copy Markdown

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 an admin-configurable toggle to control whether the OpenID Connect provider icon is displayed on Moodle’s login page, and conditionally hides related icon settings when disabled.

Changes:

  • Add a new admin setting (auth_oidc/set_pix) to control icon display on the login page.
  • Hide the icon picker and custom icon upload settings when icon display is disabled.
  • Adjust loginpage_idp_list() to conditionally include icon data in the returned IdP list.

Reviewed changes

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

File Description
auth/oidc/settings.php Adds the new “show icon” checkbox and uses it to conditionally hide icon-related settings.
auth/oidc/lang/en/auth_oidc.php Adds the English string for the new setting label.
auth/oidc/classes/loginflow/authcode.php Uses the new config flag to decide whether to return icon data for the login page IdP list.

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

Comment thread auth/oidc/settings.php Outdated
Comment thread auth/oidc/lang/en/auth_oidc.php Outdated
Comment thread auth/oidc/classes/loginflow/authcode.php Outdated
@weilai-irl
Copy link
Copy Markdown
Collaborator Author

This PR has been included in the 2026 May release.

@weilai-irl weilai-irl closed this May 21, 2026
@weilai-irl weilai-irl deleted the wip-127712-m501 branch May 21, 2026 13:16
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.

3 participants