Implemented request validation in a filter

This commit is contained in:
Deluan
2016-02-24 20:21:51 -05:00
parent 93f115d8e4
commit ee04b72db1
6 changed files with 9 additions and 13 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ type ControllerInterface interface {
CustomAbort(status int, body string)
}
func validate(controller ControllerInterface) {
func Validate(controller ControllerInterface) {
if beego.AppConfig.String("disableValidation") != "true" {
checkParameters(controller)
authenticate(controller)