Merge pull request #1143 from trheyi/main

Enhance Provider struct to include Label field for improved provider …
This commit is contained in:
Max 2025-09-12 18:51:00 +08:00 committed by GitHub
commit 46c24178d0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View file

@ -512,6 +512,7 @@ func createPublicConfig(fullConfig *Config) Config {
publicProvider := Provider{
ID: provider.ID,
Title: provider.Title,
Label: provider.Label,
Logo: provider.Logo,
Color: provider.Color,
TextColor: provider.TextColor,

View file

@ -76,6 +76,7 @@ type YaoClientConfig struct {
// Provider represents a third party login provider
type Provider struct {
ID string `json:"id,omitempty"`
Label string `json:"label,omitempty"`
Title string `json:"title,omitempty"`
Logo string `json:"logo,omitempty"`
Color string `json:"color,omitempty"`