Rename redirectUrl to redirectUri.

This commit is contained in:
Yang Luo
2021-03-15 00:01:21 +08:00
parent df948e9e34
commit 4e22e0523d
7 changed files with 13 additions and 13 deletions

View File

@ -31,7 +31,7 @@ func (c *ApiController) AuthLogin() {
code := c.Input().Get("code")
state := c.Input().Get("state")
method := c.Input().Get("method")
redirectUrl := c.Input().Get("redirect_url")
redirectUri := c.Input().Get("redirect_uri")
application := object.GetApplication(fmt.Sprintf("admin/%s", applicationName))
provider := object.GetProvider(fmt.Sprintf("admin/%s", providerName))
@ -40,7 +40,7 @@ func (c *ApiController) AuthLogin() {
oauthConfig := idProvider.GetConfig()
oauthConfig.ClientID = provider.ClientId
oauthConfig.ClientSecret = provider.ClientSecret
oauthConfig.RedirectURL = redirectUrl
oauthConfig.RedirectURL = redirectUri
var resp Response
var res authResponse