mirror of
https://github.com/go-gitea/gitea.git
synced 2024-12-04 14:46:57 -05:00
fix #1664
This commit is contained in:
parent
69b1d65c9b
commit
700ac8dea7
@ -18,7 +18,6 @@ import (
|
|||||||
"gopkg.in/ini.v1"
|
"gopkg.in/ini.v1"
|
||||||
|
|
||||||
"github.com/Unknwon/com"
|
"github.com/Unknwon/com"
|
||||||
"github.com/macaron-contrib/oauth2"
|
|
||||||
"github.com/macaron-contrib/session"
|
"github.com/macaron-contrib/session"
|
||||||
|
|
||||||
"github.com/gogits/gogs/modules/bindata"
|
"github.com/gogits/gogs/modules/bindata"
|
||||||
@ -557,18 +556,6 @@ type Mailer struct {
|
|||||||
CertFile, KeyFile string
|
CertFile, KeyFile string
|
||||||
}
|
}
|
||||||
|
|
||||||
type OauthInfo struct {
|
|
||||||
oauth2.Options
|
|
||||||
AuthUrl, TokenUrl string
|
|
||||||
}
|
|
||||||
|
|
||||||
// Oauther represents oauth service.
|
|
||||||
type Oauther struct {
|
|
||||||
GitHub, Google, Tencent,
|
|
||||||
Twitter, Weibo bool
|
|
||||||
OauthInfos map[string]*OauthInfo
|
|
||||||
}
|
|
||||||
|
|
||||||
var (
|
var (
|
||||||
MailService *Mailer
|
MailService *Mailer
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user