From 8c9338a5377c60c84cdee1f5781b3de5933bb3b0 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Wed, 12 Nov 2014 06:48:50 -0500 Subject: add personal access token panel #12 --- modules/auth/publickey_form.go | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 modules/auth/publickey_form.go (limited to 'modules/auth/publickey_form.go') diff --git a/modules/auth/publickey_form.go b/modules/auth/publickey_form.go deleted file mode 100644 index 5a1d44c0..00000000 --- a/modules/auth/publickey_form.go +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright 2014 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - -package auth - -import ( - "github.com/Unknwon/macaron" - "github.com/macaron-contrib/binding" -) - -type AddSSHKeyForm struct { - SSHTitle string `form:"title" binding:"Required"` - Content string `form:"content" binding:"Required"` -} - -func (f *AddSSHKeyForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors { - return validate(errs, ctx.Data, f, ctx.Locale) -} -- cgit v1.2.3