diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2015-04-24 15:03:21 +0800 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2015-04-24 15:03:21 +0800 |
commit | 673a76d638139ad3d5df1ba4314edfb1df2afc5c (patch) | |
tree | 3677ac48d117e59fa4be4db5cef6dc69c1fcf053 /routers | |
parent | 2c4fb6e6469f756dfaeb276302bac87e4dac3e1e (diff) | |
parent | 5a4f314cf7465425bb2802bf9d2995c258af6697 (diff) | |
download | gitea-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.go | 2 |
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 } |