mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-03 03:51:47 +08:00
Finish the prompt page logic.
This commit is contained in:
@ -32,3 +32,11 @@ func (application *Application) GetProviderItem(providerName string) *ProviderIt
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (pi *ProviderItem) isProviderVisible() bool {
|
||||
return pi.Provider.Category == "OAuth"
|
||||
}
|
||||
|
||||
func (pi *ProviderItem) isProviderPrompted() bool {
|
||||
return pi.isProviderVisible() && pi.Prompted
|
||||
}
|
||||
|
Reference in New Issue
Block a user