From c8bb475abb1c661930ca7c835405d7d62f9b154d Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sat, 15 Aug 2015 18:16:39 +0800 Subject: fix autocomplete on migration --- routers/repo/repo.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'routers/repo/repo.go') diff --git a/routers/repo/repo.go b/routers/repo/repo.go index 7bc2f764..1d295570 100644 --- a/routers/repo/repo.go +++ b/routers/repo/repo.go @@ -214,7 +214,8 @@ func MigratePost(ctx *middleware.Context, form auth.MigrateRepoForm) { } } - if strings.Contains(err.Error(), "Authentication failed") { + if strings.Contains(err.Error(), "Authentication failed") || + strings.Contains(err.Error(), " not found") { ctx.Data["Err_Auth"] = true ctx.RenderWithErr(ctx.Tr("form.auth_failed", strings.Replace(err.Error(), ":"+form.AuthPassword+"@", ":@", 1)), MIGRATE, &form) return -- cgit v1.2.3