remove extra comma

release/v0.9
Marios Andreopoulos 10 years ago
parent 12639c577f
commit b40922f4d4

@ -172,7 +172,7 @@ func SettingsSSHKeysPost(ctx *middleware.Context, form auth.AddSSHKeyForm) {
}
// Remove newline characters from form.KeyContent
cleanKeyContent := strings.Replace(form.KeyContent, "\n", "", -1),
cleanKeyContent := strings.Replace(form.KeyContent, "\n", "", -1)
if ok, err := models.CheckPublicKeyString(cleanKeyContent); !ok {
ctx.Flash.Error(ctx.Tr("form.invalid_ssh_key", err.Error()))

Loading…
Cancel
Save