diff options
author | Unknwon <u@gogs.io> | 2015-08-15 16:03:20 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-08-15 16:03:20 +0800 |
commit | e633425f276a0b95702e2a12b3d5f0d217e76f6d (patch) | |
tree | d2c4133eebdb6c1d8c436287d123e9dc9c0af6ec /routers/repo/repo.go | |
parent | b35d7eee31e8a33e314d54514854efaeee9d46b1 (diff) | |
download | gitea-e633425f276a0b95702e2a12b3d5f0d217e76f6d.tar.gz gitea-e633425f276a0b95702e2a12b3d5f0d217e76f6d.zip |
#1180 and #1250: migration
Diffstat (limited to 'routers/repo/repo.go')
-rw-r--r-- | routers/repo/repo.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/repo.go b/routers/repo/repo.go index 533bd569ad..7bc2f764b9 100644 --- a/routers/repo/repo.go +++ b/routers/repo/repo.go @@ -216,7 +216,7 @@ func MigratePost(ctx *middleware.Context, form auth.MigrateRepoForm) { if strings.Contains(err.Error(), "Authentication failed") { ctx.Data["Err_Auth"] = true - ctx.RenderWithErr(ctx.Tr("form.auth_failed", err), MIGRATE, &form) + ctx.RenderWithErr(ctx.Tr("form.auth_failed", strings.Replace(err.Error(), ":"+form.AuthPassword+"@", ":<password>@", 1)), MIGRATE, &form) return } |