aboutsummaryrefslogtreecommitdiffhomepage
path: root/ui/oauth2_unlink.go
diff options
context:
space:
mode:
Diffstat (limited to 'ui/oauth2_unlink.go')
-rw-r--r--ui/oauth2_unlink.go2
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"))