Improve provider check.

This commit is contained in:
Yang Luo
2021-08-08 10:50:29 +08:00
parent 05222c7a29
commit 6aeadfa3bd
2 changed files with 9 additions and 3 deletions

View File

@ -33,10 +33,10 @@ func (application *Application) GetProviderItem(providerName string) *ProviderIt
return nil
}
func (pi *ProviderItem) isProviderVisible() bool {
func (pi *ProviderItem) IsProviderVisible() bool {
return pi.Provider.Category == "OAuth"
}
func (pi *ProviderItem) isProviderPrompted() bool {
return pi.isProviderVisible() && pi.Prompted
return pi.IsProviderVisible() && pi.Prompted
}