diff options
author | Unknwon <u@gogs.io> | 2015-08-15 18:16:39 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-08-15 18:16:39 +0800 |
commit | c8bb475abb1c661930ca7c835405d7d62f9b154d (patch) | |
tree | 9df1b9ab5150235e789cd11745a2bb19980e8b7f /routers | |
parent | ce8864c69a8dd6466ad5a39faf5402cd3280d0a2 (diff) | |
download | gitea-c8bb475abb1c661930ca7c835405d7d62f9b154d.tar.gz gitea-c8bb475abb1c661930ca7c835405d7d62f9b154d.zip |
fix autocomplete on migration
Diffstat (limited to 'routers')
-rw-r--r-- | routers/repo/repo.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/routers/repo/repo.go b/routers/repo/repo.go index 7bc2f764b9..1d29557005 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+"@", ":<password>@", 1)), MIGRATE, &form) return |