aboutsummaryrefslogtreecommitdiffstats
path: root/modules/auth/user_form.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/auth/user_form.go')
-rw-r--r--modules/auth/user_form.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/auth/user_form.go b/modules/auth/user_form.go
index ab0bb1e7dd..d913822a8d 100644
--- a/modules/auth/user_form.go
+++ b/modules/auth/user_form.go
@@ -169,9 +169,10 @@ func (f *AddOpenIDForm) Validate(ctx *macaron.Context, errs binding.Errors) bind
// AddKeyForm form for adding SSH/GPG key
type AddKeyForm struct {
- Type string `binding:"OmitEmpty"`
- Title string `binding:"Required;MaxSize(50)"`
- Content string `binding:"Required"`
+ Type string `binding:"OmitEmpty"`
+ Title string `binding:"Required;MaxSize(50)"`
+ Content string `binding:"Required"`
+ IsWritable bool
}
// Validate validates the fields