diff options
author | Frédéric Guillot <fred@miniflux.net> | 2018-09-23 21:02:26 -0700 |
---|---|---|
committer | Frédéric Guillot <fred@miniflux.net> | 2018-09-23 21:02:26 -0700 |
commit | 9d08139f4363d3503398002bc82cb3746e3438cf (patch) | |
tree | b09c1efb14445624e4a2771bf8cbcf3a9828ecf9 /ui/oauth2_unlink.go | |
parent | 844680e57328034c20a2d2b84bd315b55fee9e23 (diff) |
Improve request package and add more unit tests
Diffstat (limited to 'ui/oauth2_unlink.go')
-rw-r--r-- | ui/oauth2_unlink.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/oauth2_unlink.go b/ui/oauth2_unlink.go index 4435733..022e282 100644 --- a/ui/oauth2_unlink.go +++ b/ui/oauth2_unlink.go @@ -19,7 +19,7 @@ import ( // OAuth2Unlink unlink an account from the external provider. func (c *Controller) OAuth2Unlink(w http.ResponseWriter, r *http.Request) { printer := locale.NewPrinter(request.UserLanguage(r)) - provider := request.Param(r, "provider", "") + provider := request.RouteStringParam(r, "provider") if provider == "" { logger.Info("[OAuth2] Invalid or missing provider") response.Redirect(w, r, route.Path(c.router, "login")) |