aboutsummaryrefslogtreecommitdiffstats
path: root/routers/private/key.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/private/key.go')
-rw-r--r--routers/private/key.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/private/key.go b/routers/private/key.go
index 1e60af232a..4f518e41f0 100644
--- a/routers/private/key.go
+++ b/routers/private/key.go
@@ -50,7 +50,7 @@ func UpdatePublicKeyInRepo(ctx *context.PrivateContext) {
// AuthorizedPublicKeyByContent searches content as prefix (leak e-mail part)
// and returns public key found.
func AuthorizedPublicKeyByContent(ctx *context.PrivateContext) {
- content := ctx.Form("content")
+ content := ctx.FormString("content")
publicKey, err := models.SearchPublicKeyByContent(content)
if err != nil {