mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-10-21 22:03:59 +00:00
@@ -218,6 +218,9 @@ func (c *Config) AuthCodeURL(state string) string {
|
||||
if err != nil {
|
||||
panic("AuthURL malformed: " + err.Error())
|
||||
}
|
||||
if err := url_.Query().Get("error"); err != "" {
|
||||
panic("AuthURL contains error: " + err)
|
||||
}
|
||||
q := url.Values{
|
||||
"response_type": {"code"},
|
||||
"client_id": {c.ClientId},
|
||||
|
Reference in New Issue
Block a user