Add RedirectUrls to app.

This commit is contained in:
Yang Luo
2021-03-06 21:41:24 +08:00
parent 9e8bde509a
commit 45ec95b859
4 changed files with 141 additions and 2 deletions

View File

@ -31,8 +31,9 @@ type Application struct {
Providers []string `xorm:"varchar(100)" json:"providers"`
ProviderObjs []*Provider `xorm:"-" json:"providerObjs"`
ClientId string `xorm:"varchar(100)" json:"clientId"`
ClientSecret string `xorm:"varchar(100)" json:"clientSecret"`
ClientId string `xorm:"varchar(100)" json:"clientId"`
ClientSecret string `xorm:"varchar(100)" json:"clientSecret"`
RedirectUrls []string `xorm:"varchar(1000)" json:"redirectUrls"`
}
func GetApplications(owner string) []*Application {