chore: migrate to gitea
This commit is contained in:
@@ -43,7 +43,7 @@ func (hc *Context) ConnectUser(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
oauth2Service, err := oauth2.New(&http.Client{})
|
||||
oauth2Service, err := oauth2.NewService(c)
|
||||
if oauth2Service == nil {
|
||||
utils.GetLoggerFromCtx(c).WithError(err).Error(err)
|
||||
utils.JSONError(c.Writer, model.ErrInternalServer)
|
||||
@@ -88,7 +88,7 @@ func (hc *Context) CreateUser(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
oauth2Service, err := oauth2.New(&http.Client{})
|
||||
oauth2Service, err := oauth2.NewService(c)
|
||||
if oauth2Service == nil {
|
||||
utils.GetLogger().WithError(err).Error(err)
|
||||
utils.JSONError(c.Writer, model.ErrInternalServer)
|
||||
|
||||
Reference in New Issue
Block a user