summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2015-04-24 15:03:21 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2015-04-24 15:03:21 +0800
commit673a76d638139ad3d5df1ba4314edfb1df2afc5c (patch)
tree3677ac48d117e59fa4be4db5cef6dc69c1fcf053 /routers
parent2c4fb6e6469f756dfaeb276302bac87e4dac3e1e (diff)
parent5a4f314cf7465425bb2802bf9d2995c258af6697 (diff)
downloadgitea-673a76d638139ad3d5df1ba4314edfb1df2afc5c.tar.gz
gitea-673a76d638139ad3d5df1ba4314edfb1df2afc5c.zip
Merge pull request #1211 from mephux/hotfix/type-fix-ValidatePassword
Hotfix/type fix validate password
Diffstat (limited to 'routers')
-rw-r--r--routers/api/v1/repo.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/repo.go b/routers/api/v1/repo.go
index 170c2e90ba..7da5f81731 100644
--- a/routers/api/v1/repo.go
+++ b/routers/api/v1/repo.go
@@ -164,7 +164,7 @@ func MigrateRepo(ctx *middleware.Context, form auth.MigrateRepoForm) {
}
return
}
- if !u.ValidtePassword(ctx.Query("password")) {
+ if !u.ValidatePassword(ctx.Query("password")) {
ctx.HandleAPI(422, "Username or password is not correct.")
return
}