|
|
@@ -29,7 +29,7 @@ func NewProjectOAuthSlackHandler(
|
|
|
func (p *ProjectOAuthSlackHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
|
|
state := oauth.CreateRandomState()
|
|
|
|
|
|
- if err := p.PopulateOAuthSession(w, r, state, false, true, "", 0); err != nil {
|
|
|
+ if err := p.PopulateOAuthSession(w, r, state, true, false, "", 0); err != nil {
|
|
|
p.HandleAPIError(w, r, apierrors.NewErrInternal(err))
|
|
|
return
|
|
|
}
|